function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); }
function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n3 = 0, F = function F() {}; return { s: F, n: function n() { return _n3 >= r.length ? { done: !0 } : { done: !1, value: r[_n3++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
function _createClass2(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2], {
/***/
"+xgG":
/***/
function xgG(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return NewEmployementComponent;
});
/* harmony import */
var src_app_Shared_Enum_achievement_category_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("uIW0");
/* harmony import */
var src_app_Shared_Model_achiement_view_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("UWk7");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("AytR");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("fXoL");
/* harmony import */
var src_app_Shared_Service_achievement_award_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("DiM6");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("jhN1");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("LYBR");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("tyNb");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("ofXK");
/* harmony import */
var ngx_pagination__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("oOf3");
function NewEmployementComponent_div_12_ng_container_24_a_13_Template(rf, ctx) {
if (rf & 1) {
var _r1566 = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](0, "a", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵlistener */
"ic"]("click", function NewEmployementComponent_div_12_ng_container_24_a_13_Template_a_click_0_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵrestoreView */
"Mc"](_r1566);
var item_r1561 = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r1564 = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r1564.onDownload(item_r1561 == null ? null : item_r1561.PdfFIleName);
});
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelement */
"Wb"](1, "i", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function NewEmployementComponent_div_12_ng_container_24_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](1, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelement */
"Wb"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtemplate */
"Tc"](13, NewEmployementComponent_div_12_ng_container_24_a_13_Template, 2, 0, "a", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r1561 = ctx.$implicit;
var i_r1562 = ctx.index;
var ctx_r1559 = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate1 */
"Xc"]("", (ctx_r1559.filterModel.IndexModel.Page - 1) * ctx_r1559.filterModel.IndexModel.PageSize + (i_r1562 + 1), "/");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r1561 == null ? null : item_r1561.Id, "");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r1559.translate.currentLang != "en" ? item_r1561 == null ? null : item_r1561.DepartmentHindi : item_r1561 == null ? null : item_r1561.Department, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r1559.translate.currentLang != "en" ? item_r1561 == null ? null : item_r1561.AchievementHindi : item_r1561 == null ? null : item_r1561.Achievement, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r1559.translate.currentLang != "en" ? item_r1561 == null ? null : item_r1561.DescriptionHindi : item_r1561 == null ? null : item_r1561.Description, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1561.PdfFIleName);
}
}
function NewEmployementComponent_div_12_tr_26_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](1, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](2, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](6, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](9, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](12, "\xA0");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1560 = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](4, 3, "Total_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r1560.TotalJobs);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r1560.TotalCost.toFixed(2));
}
}
function NewEmployementComponent_div_12_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](2, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](5, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelement */
"Wb"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](10, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](11, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](13, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](14, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](16, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](17, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](19, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](20, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](22, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](23, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtemplate */
"Tc"](24, NewEmployementComponent_div_12_ng_container_24_Template, 14, 6, "ng-container", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](25, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtemplate */
"Tc"](26, NewEmployementComponent_div_12_tr_26_Template, 13, 5, "tr", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1557 = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](7, 8, "SrNo_txt"), "/");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](10, 10, "RecordEntryNo_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](13, 12, "Department_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](16, 14, "Numberofopportunities_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](19, 16, "CostInCrores_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](22, 18, "pdf_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind2 */
"pc"](25, 20, ctx_r1557.model, ctx_r1557.pagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r1557.model == null ? null : ctx_r1557.model.length);
}
}
function NewEmployementComponent_div_13_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](1, "h3", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](3, 1, "NoRecordFound_txt"));
}
}
var NewEmployementComponent =
/*@__PURE__*/
function () {
var NewEmployementComponent =
/*#__PURE__*/
function () {
//#endregion
function NewEmployementComponent(_achievementAwardService, translate, sanitizer, commonService, route, _titleService) {
_classCallCheck(this, NewEmployementComponent);
// _titleService.setTitle(translate.currentLang == 'hi' ? " जनकल्याण पोर्टल, राजस्थान सरकार।" : " Jankalyan Portal, Rajasthan Government")
this._achievementAwardService = _achievementAwardService;
this.translate = translate;
this.sanitizer = sanitizer;
this.commonService = commonService;
this.route = route;
this._titleService = _titleService; //#region variable
this.filterModel = new src_app_Shared_Model_achiement_view_model__WEBPACK_IMPORTED_MODULE_1__[
/* AchievementAllSearchModel */
"b"]();
this.totalRecords = 0;
this.pagerConfig = {
id: 'datapager',
itemsPerPage: this.filterModel.IndexModel.PageSize,
currentPage: this.filterModel.IndexModel.Page,
totalItems: this.totalRecords
};
this.DateFormat = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__[
/* environment */
"a"].DateFormat;
this.IsLoading = true; //filterModel = new AchiementFilterModel();
this.achievementEnum = src_app_Shared_Enum_achievement_category_enum__WEBPACK_IMPORTED_MODULE_0__[
/* AchievementCategoryEnum */
"a"];
this.TotalJobs = 0;
this.TotalCost = 0;
if (this.route.snapshot.params.dpt) {
this.filterModel.DepartmentCode = String(this.route.snapshot.params.dpt);
}
}
return _createClass2(NewEmployementComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var IsLatestUpdate = JSON.parse(localStorage.getItem("IsLatestUpdate"));
if (IsLatestUpdate) {
var MinimumDate = new Date(new Date().getTime() - 15 * 24 * 60 * 60 * 1000);
var uTCDate = new Date(Date.UTC(new Date(MinimumDate).getFullYear(), new Date(MinimumDate).getMonth(), new Date(MinimumDate).getDate())).toISOString();
this.filterModel.FromDate = uTCDate;
this.GetData();
} else {
this.GetData();
}
}
}, {
key: "GetData",
value: function GetData() {
var _this2 = this;
//
this.IsLoading = true;
this.filterModel.IndexModel = this.filterModel.IndexModel;
this.filterModel.IndexModel.OrderBy = "DepartmentHindi";
this.filterModel.IndexModel.OrderByAsc = 1;
this.filterModel.CategoryCode = this.achievementEnum.EmploymentCode;
this.filterModel.IsActive = true;
this.filterModel.IndexModel.PageSize = 101;
this._achievementAwardService.GetAchievementListBySearchFilterData(this.filterModel, false).subscribe(function (response) {
if (response.IsSuccess) {
_this2.model = response.Data.Data;
_this2.model.forEach(function (element) {
var _a, _b;
_this2.TotalJobs = _this2.TotalJobs + Number((_a = element) === null || _a === void 0 ? void 0 : _a.Achievement);
_this2.TotalCost = _this2.TotalCost + Number((_b = element) === null || _b === void 0 ? void 0 : _b.Description);
});
if (!_this2.filterModel.IndexModel.IsPostBack) {
_this2.totalRecords = response.Data.TotalRecords;
}
_this2.updatePageConfig();
}
_this2.IsLoading = false;
}, function (error) {});
}
}, {
key: "onSearch",
value: function onSearch() {
this.filterModel.IndexModel.Page = 1;
this.filterModel.IndexModel.IsPostBack = false;
this.GetData();
}
}, {
key: "reset",
value: function reset() {
this.filterModel = new src_app_Shared_Model_achiement_view_model__WEBPACK_IMPORTED_MODULE_1__[
/* AchievementAllSearchModel */
"b"]();
this.onSearch();
}
}, {
key: "getNextPageRecord",
value: function getNextPageRecord(page) {
window.scroll(0, 0);
this.filterModel.IndexModel.IsPostBack = true;
this.filterModel.IndexModel.Page = page;
this.GetData();
}
}, {
key: "changePageSize",
value: function changePageSize(value) {
window.scroll(0, 0);
this.filterModel.IndexModel.IsPostBack = true;
this.filterModel.IndexModel.PageSize = Number(value);
this.filterModel.IndexModel.Page = 1;
this.GetData();
}
}, {
key: "updatePageConfig",
value: function updatePageConfig() {
this.pagerConfig = {
itemsPerPage: this.filterModel.IndexModel.PageSize,
currentPage: this.filterModel.IndexModel.Page,
totalItems: this.totalRecords
};
}
}, {
key: "onDownload",
value: function onDownload(url) {
if (url) {
var newWin = open("", "_blank");
newWin.document.write('');
}
}
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
localStorage.removeItem("IsLatestUpdate");
}
}]);
}();
NewEmployementComponent.ɵfac = function NewEmployementComponent_Factory(t) {
return new (t || NewEmployementComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_achievement_award_service__WEBPACK_IMPORTED_MODULE_4__[
/* AchievementAwardService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__[
/* DomSanitizer */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_7__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_8__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__[
/* Title */
"d"]));
};
NewEmployementComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdefineComponent */
"Pb"]({
type: NewEmployementComponent,
selectors: [["app-new-employement"]],
decls: 14,
vars: 7,
consts: [["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], [1, "inner-page", "pt-0"], [1, "container-fluid", "p-4", "pt-5"], [1, "row"], [1, "col-xl-12", "col-lg-12", "mb-12"], [1, "title", "text-center"], ["class", "col-lg-12", 4, "ngIf"], [1, "col-lg-12"], [1, "table-responsive"], [1, "table", "table-striped", "table-bordered", "table-new-design"], [2, "width", "10%"], [2, "width", "70%"], [4, "ngFor", "ngForOf"], [4, "ngIf"], ["href", "#", "href", "javascript:void(0);", 3, "click", 4, "ngIf"], ["href", "#", "href", "javascript:void(0);", 3, "click"], [1, "fas", "fa-file-pdf"], ["colspan", "2", 2, "text-align", "right"], [1, "text-center"]],
template: function NewEmployementComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](0, "nav", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](1, "ol", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](6, "section", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementStart */
"ac"](10, "h1", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtext */
"Vc"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtemplate */
"Tc"](12, NewEmployementComponent_div_12_Template, 27, 23, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtemplate */
"Tc"](13, NewEmployementComponent_div_13_Template, 4, 3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx.commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵpipeBind1 */
"oc"](5, 5, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵtextInterpolate */
"Wc"](ctx.translate.currentLang != "en" ? "\u0926\u094B \u0935\u0930\u094D\u0937 \u0915\u0940 \u0909\u092A\u0932\u092C\u094D\u0927\u093F\u092F\u094B\u0902 \u092A\u0930 \u0935\u093F\u092D\u093F\u0928\u094D\u0928 \u0935\u093F\u092D\u093E\u0917\u094B\u0902 \u0915\u0940 \u0915\u093E\u0930\u094D\u092F\u094B \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E \u090F\u0935\u0902 \u0932\u093E\u0917\u0924" : "Number and cost of work of various departments on two years of achievements");
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.model.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx.model == undefined || ctx.model.length <= 0) && !ctx.IsLoading);
}
},
directives: [_angular_router__WEBPACK_IMPORTED_MODULE_8__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_9__[
/* NgIf */
"n"], _angular_common__WEBPACK_IMPORTED_MODULE_9__[
/* NgForOf */
"m"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__[
/* TranslatePipe */
"c"], ngx_pagination__WEBPACK_IMPORTED_MODULE_10__[
/* PaginatePipe */
"b"]],
styles: [""]
});
return NewEmployementComponent;
}();
/***/
},
/***/
"/9+q":
/***/
function _9Q(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return NoRecordsComponent;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fXoL");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ofXK");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("sYmb");
function NoRecordsComponent_img_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelement */
"Wb"](0, "img", 3);
}
}
var _c0 = function _c0(a0) {
return {
color: a0
};
};
var _c1 = function _c1(a0) {
return {
fontSize: a0
};
};
var NoRecordsComponent =
/*@__PURE__*/
function () {
var NoRecordsComponent =
/*#__PURE__*/
function () {
function NoRecordsComponent() {
_classCallCheck(this, NoRecordsComponent);
this.color = '#000';
this.showImage = false;
this.fontSize = '200%';
}
return _createClass2(NoRecordsComponent, [{
key: "ngOnInit",
value: function ngOnInit() {}
}]);
}();
NoRecordsComponent.ɵfac = function NoRecordsComponent_Factory(t) {
return new (t || NoRecordsComponent)();
};
NoRecordsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineComponent */
"Pb"]({
type: NoRecordsComponent,
selectors: [["app-no-records"]],
inputs: {
color: "color",
showImage: "showImage",
fontSize: ["font-size", "fontSize"]
},
decls: 5,
vars: 10,
consts: [[1, "not-record-found", "text-center", "not-record-found-default", 3, "ngStyle"], ["src", "assets/images/record-not-found.png", "alt", "Government of Rajasthan", 4, "ngIf"], [1, "mb-0", "mt-3", 3, "ngStyle"], ["src", "assets/images/record-not-found.png", "alt", "Government of Rajasthan"]],
template: function NoRecordsComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementStart */
"ac"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵtemplate */
"Tc"](1, NoRecordsComponent_img_1_Template, 1, 0, "img", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementStart */
"ac"](2, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵproperty */
"tc"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵpureFunction1 */
"Ec"](6, _c0, ctx.color));
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.showImage);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵproperty */
"tc"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵpureFunction1 */
"Ec"](8, _c1, ctx.fontSize));
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵpipeBind1 */
"oc"](4, 4, "NoRecordFound_txt"));
}
},
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* NgStyle */
"o"], _angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* NgIf */
"n"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__[
/* TranslatePipe */
"c"]],
styles: [""]
});
return NoRecordsComponent;
}();
/***/
},
/***/
0:
/***/
function _(module, exports, __webpack_require__) {
module.exports = __webpack_require__("zUnb");
/***/
},
/***/
"0EUg":
/***/
function EUg(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return concatAll;
});
/* harmony import */
var _mergeAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bHdf");
function concatAll() {
return Object(_mergeAll__WEBPACK_IMPORTED_MODULE_0__[
/* mergeAll */
"a"])(1);
} //# sourceMappingURL=concatAll.js.map
/***/
},
/***/
"1cbQ":
/***/
function cbQ(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export ProjectMasterViewModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return ProjectFilterModel;
});
/* unused harmony export ProjectEntryDetailFrontViewModel */
/* harmony import */
var _common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
var ProjectMasterViewModel =
/*#__PURE__*/
_createClass2(function ProjectMasterViewModel() {
_classCallCheck(this, ProjectMasterViewModel);
this.ProjectMappingItems = [];
});
var ProjectFilterModel =
/*#__PURE__*/
_createClass2(function ProjectFilterModel() {
_classCallCheck(this, ProjectFilterModel);
this.IsActive = true;
this.AdmDepartmentCode = 0;
this.DistrictDepartmentCode = 0;
this.DepartmentCode = 0;
this.DistrictCode = 0;
this.MPConstituencyCode = 0;
this.MLAConstituencyCode = 0;
this.StatusCode = 0;
this.StartYearCode = 0;
this.SectorCode = 0;
this.CategoryCode = 0;
this.SubCategoryCode = 0;
this.WorkTypeCode = 0;
this.IsActive = true;
this.IndexModel = new _common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
});
var ProjectEntryDetailFrontViewModel =
/*#__PURE__*/
_createClass2(function ProjectEntryDetailFrontViewModel() {
_classCallCheck(this, ProjectEntryDetailFrontViewModel);
});
/***/
},
/***/
"1pIY":
/***/
function pIY(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var AsyncAction_1 =
/*@__PURE__*/
__webpack_require__("2tF/");
var AsyncScheduler_1 =
/*@__PURE__*/
__webpack_require__("NTcF");
exports.asyncScheduler =
/*@__PURE__*/
new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);
exports.async = exports.asyncScheduler;
/***/
},
/***/
"2QA8":
/***/
function QA8(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return rxSubscriber;
});
/* unused harmony export $$rxSubscriber */
var rxSubscriber =
/*@__PURE__*/
function () {
return typeof Symbol === 'function' ? Symbol('rxSubscriber') : '@@rxSubscriber_' + Math.random();
}();
var $$rxSubscriber = rxSubscriber; //# sourceMappingURL=rxSubscriber.js.map
/***/
},
/***/
"2Vo4":
/***/
function Vo4(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return BehaviorSubject;
});
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("XNiG");
/* harmony import */
var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9ppp");
var BehaviorSubject =
/*#__PURE__*/
function (_Subject__WEBPACK_IMP) {
function BehaviorSubject(_value) {
var _this3;
_classCallCheck(this, BehaviorSubject);
_this3 = _callSuper(this, BehaviorSubject);
_this3._value = _value;
return _this3;
}
_inherits(BehaviorSubject, _Subject__WEBPACK_IMP);
return _createClass2(BehaviorSubject, [{
key: "value",
get: function get() {
return this.getValue();
}
}, {
key: "_subscribe",
value: function _subscribe(subscriber) {
var subscription = _superPropGet(BehaviorSubject, "_subscribe", this, 3)([subscriber]);
if (subscription && !subscription.closed) {
subscriber.next(this._value);
}
return subscription;
}
}, {
key: "getValue",
value: function getValue() {
if (this.hasError) {
throw this.thrownError;
} else if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__[
/* ObjectUnsubscribedError */
"a"]();
} else {
return this._value;
}
}
}, {
key: "next",
value: function next(value) {
_superPropGet(BehaviorSubject, "next", this, 3)([this._value = value]);
}
}]);
}(_Subject__WEBPACK_IMPORTED_MODULE_0__[
/* Subject */
"a"]); //# sourceMappingURL=BehaviorSubject.js.map
/***/
},
/***/
"2fFW":
/***/
function fFW(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return config;
});
var _enable_super_gross_mode_that_will_cause_bad_things = false;
var config = {
Promise: undefined,
set useDeprecatedSynchronousErrorHandling(value) {
if (value) {
var error = new Error();
console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack);
} else if (_enable_super_gross_mode_that_will_cause_bad_things) {
console.log('RxJS: Back to a better error behavior. Thank you. <3');
}
_enable_super_gross_mode_that_will_cause_bad_things = value;
},
get useDeprecatedSynchronousErrorHandling() {
return _enable_super_gross_mode_that_will_cause_bad_things;
}
}; //# sourceMappingURL=config.js.map
/***/
},
/***/
"2tF/":
/***/
function tF_(module, exports, __webpack_require__) {
"use strict";
var __extends = this && this.__extends ||
/*@__PURE__*/
function () {
var _extendStatics = function extendStatics(d, b) {
_extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function (d, b) {
d.__proto__ = b;
} || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
};
return _extendStatics(d, b);
};
return function (d, b) {
_extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var Action_1 =
/*@__PURE__*/
__webpack_require__("Dz+M");
var AsyncAction =
/*@__PURE__*/
function (_super) {
__extends(AsyncAction, _super);
function AsyncAction(scheduler, work) {
var _this = _super.call(this, scheduler, work) || this;
_this.scheduler = scheduler;
_this.work = work;
_this.pending = false;
return _this;
}
AsyncAction.prototype.schedule = function (state, delay) {
if (delay === void 0) {
delay = 0;
}
if (this.closed) {
return this;
}
this.state = state;
var id = this.id;
var scheduler = this.scheduler;
if (id != null) {
this.id = this.recycleAsyncId(scheduler, id, delay);
}
this.pending = true;
this.delay = delay;
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
return this;
};
AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {
if (delay === void 0) {
delay = 0;
}
return setInterval(scheduler.flush.bind(scheduler, this), delay);
};
AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
if (delay === void 0) {
delay = 0;
}
if (delay !== null && this.delay === delay && this.pending === false) {
return id;
}
clearInterval(id);
return undefined;
};
AsyncAction.prototype.execute = function (state, delay) {
if (this.closed) {
return new Error('executing a cancelled action');
}
this.pending = false;
var error = this._execute(state, delay);
if (error) {
return error;
} else if (this.pending === false && this.id != null) {
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
}
};
AsyncAction.prototype._execute = function (state, delay) {
var errored = false;
var errorValue = undefined;
try {
this.work(state);
} catch (e) {
errored = true;
errorValue = !!e && e || new Error(e);
}
if (errored) {
this.unsubscribe();
return errorValue;
}
};
AsyncAction.prototype._unsubscribe = function () {
var id = this.id;
var scheduler = this.scheduler;
var actions = scheduler.actions;
var index = actions.indexOf(this);
this.work = null;
this.state = null;
this.pending = false;
this.scheduler = null;
if (index !== -1) {
actions.splice(index, 1);
}
if (id != null) {
this.id = this.recycleAsyncId(scheduler, id, null);
}
this.delay = null;
};
return AsyncAction;
}(Action_1.Action);
exports.AsyncAction = AsyncAction;
/***/
},
/***/
"3N8a":
/***/
function N8a(module, __webpack_exports__, __webpack_require__) {
"use strict"; // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Subscription.js + 1 modules
var Subscription = __webpack_require__("quSY"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/scheduler/Action.js
var Action_Action =
/*#__PURE__*/
function (_Subscription$a) {
function Action_Action(scheduler, work) {
_classCallCheck(this, Action_Action);
return _callSuper(this, Action_Action);
}
_inherits(Action_Action, _Subscription$a);
return _createClass2(Action_Action, [{
key: "schedule",
value: function schedule(state) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
return this;
}
}]);
}(Subscription["a"
/* Subscription */
]); //# sourceMappingURL=Action.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/scheduler/AsyncAction.js
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AsyncAction_AsyncAction;
});
var AsyncAction_AsyncAction =
/*#__PURE__*/
function (_Action_Action) {
function AsyncAction_AsyncAction(scheduler, work) {
var _this4;
_classCallCheck(this, AsyncAction_AsyncAction);
_this4 = _callSuper(this, AsyncAction_AsyncAction, [scheduler, work]);
_this4.scheduler = scheduler;
_this4.work = work;
_this4.pending = false;
return _this4;
}
_inherits(AsyncAction_AsyncAction, _Action_Action);
return _createClass2(AsyncAction_AsyncAction, [{
key: "schedule",
value: function schedule(state) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
if (this.closed) {
return this;
}
this.state = state;
var id = this.id;
var scheduler = this.scheduler;
if (id != null) {
this.id = this.recycleAsyncId(scheduler, id, delay);
}
this.pending = true;
this.delay = delay;
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
return this;
}
}, {
key: "requestAsyncId",
value: function requestAsyncId(scheduler, id) {
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
return setInterval(scheduler.flush.bind(scheduler, this), delay);
}
}, {
key: "recycleAsyncId",
value: function recycleAsyncId(scheduler, id) {
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
if (delay !== null && this.delay === delay && this.pending === false) {
return id;
}
clearInterval(id);
return undefined;
}
}, {
key: "execute",
value: function execute(state, delay) {
if (this.closed) {
return new Error('executing a cancelled action');
}
this.pending = false;
var error = this._execute(state, delay);
if (error) {
return error;
} else if (this.pending === false && this.id != null) {
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
}
}
}, {
key: "_execute",
value: function _execute(state, delay) {
var errored = false;
var errorValue = undefined;
try {
this.work(state);
} catch (e) {
errored = true;
errorValue = !!e && e || new Error(e);
}
if (errored) {
this.unsubscribe();
return errorValue;
}
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var id = this.id;
var scheduler = this.scheduler;
var actions = scheduler.actions;
var index = actions.indexOf(this);
this.work = null;
this.state = null;
this.pending = false;
this.scheduler = null;
if (index !== -1) {
actions.splice(index, 1);
}
if (id != null) {
this.id = this.recycleAsyncId(scheduler, id, null);
}
this.delay = null;
}
}]);
}(Action_Action); //# sourceMappingURL=AsyncAction.js.map
/***/
},
/***/
"3Pt+":
/***/
function Pt(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export AbstractControl */
/* unused harmony export AbstractControlDirective */
/* unused harmony export AbstractFormGroupDirective */
/* unused harmony export COMPOSITION_BUFFER_MODE */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return CheckboxControlValueAccessor;
});
/* unused harmony export CheckboxRequiredValidator */
/* unused harmony export ControlContainer */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return DefaultValueAccessor;
});
/* unused harmony export EmailValidator */
/* unused harmony export FormArray */
/* unused harmony export FormArrayName */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return FormBuilder;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return FormControl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return FormControlDirective;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "f", function () {
return FormControlName;
});
/* unused harmony export FormGroup */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "g", function () {
return FormGroupDirective;
});
/* unused harmony export FormGroupName */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "h", function () {
return FormsModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "i", function () {
return MaxLengthValidator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "j", function () {
return MinLengthValidator;
});
/* unused harmony export NG_ASYNC_VALIDATORS */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "k", function () {
return NG_VALIDATORS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "l", function () {
return NG_VALUE_ACCESSOR;
});
/* unused harmony export NgControl */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "m", function () {
return NgControlStatus;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "n", function () {
return NgControlStatusGroup;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "o", function () {
return NgForm;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "p", function () {
return NgModel;
});
/* unused harmony export NgModelGroup */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "q", function () {
return NgSelectOption;
});
/* unused harmony export NumberValueAccessor */
/* unused harmony export PatternValidator */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "r", function () {
return RadioControlValueAccessor;
});
/* unused harmony export RangeValueAccessor */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "s", function () {
return ReactiveFormsModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "t", function () {
return RequiredValidator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "u", function () {
return SelectControlValueAccessor;
});
/* unused harmony export SelectMultipleControlValueAccessor */
/* unused harmony export VERSION */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "v", function () {
return Validators;
});
/* unused harmony export ɵInternalFormsSharedModule */
/* unused harmony export ɵNgNoValidate */
/* unused harmony export ɵNgSelectMultipleOption */
/* unused harmony export ɵangular_packages_forms_forms_a */
/* unused harmony export ɵangular_packages_forms_forms_b */
/* unused harmony export ɵangular_packages_forms_forms_ba */
/* unused harmony export ɵangular_packages_forms_forms_bb */
/* unused harmony export ɵangular_packages_forms_forms_bc */
/* unused harmony export ɵangular_packages_forms_forms_bd */
/* unused harmony export ɵangular_packages_forms_forms_be */
/* unused harmony export ɵangular_packages_forms_forms_c */
/* unused harmony export ɵangular_packages_forms_forms_d */
/* unused harmony export ɵangular_packages_forms_forms_e */
/* unused harmony export ɵangular_packages_forms_forms_f */
/* unused harmony export ɵangular_packages_forms_forms_g */
/* unused harmony export ɵangular_packages_forms_forms_h */
/* unused harmony export ɵangular_packages_forms_forms_i */
/* unused harmony export ɵangular_packages_forms_forms_j */
/* unused harmony export ɵangular_packages_forms_forms_k */
/* unused harmony export ɵangular_packages_forms_forms_l */
/* unused harmony export ɵangular_packages_forms_forms_m */
/* unused harmony export ɵangular_packages_forms_forms_n */
/* unused harmony export ɵangular_packages_forms_forms_o */
/* unused harmony export ɵangular_packages_forms_forms_p */
/* unused harmony export ɵangular_packages_forms_forms_q */
/* unused harmony export ɵangular_packages_forms_forms_r */
/* unused harmony export ɵangular_packages_forms_forms_s */
/* unused harmony export ɵangular_packages_forms_forms_t */
/* unused harmony export ɵangular_packages_forms_forms_u */
/* unused harmony export ɵangular_packages_forms_forms_v */
/* unused harmony export ɵangular_packages_forms_forms_w */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "w", function () {
return ɵNgSelectMultipleOption;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "x", function () {
return ɵNgNoValidate;
});
/* unused harmony export ɵangular_packages_forms_forms_z */
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fXoL");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ofXK");
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("cp0P");
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Cfvw");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("lJxs");
/**
* @license Angular v9.0.7
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/control_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* \@description
* Defines an interface that acts as a bridge between the Angular forms API and a
* native element in the DOM.
*
* Implement this interface to create a custom form control directive
* that integrates with Angular forms.
*
* @see DefaultValueAccessor
*
* \@publicApi
* @record
*/
function ControlValueAccessor() {}
if (false) {}
/**
* Used to provide a `ControlValueAccessor` for form controls.
*
* See `DefaultValueAccessor` for how to implement one.
*
* \@publicApi
* @type {?}
*/
var NG_VALUE_ACCESSOR =
/*@__PURE__*/
new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* InjectionToken */
"t"]('NgValueAccessor');
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/checkbox_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var CHECKBOX_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return CheckboxControlValueAccessor;
}),
multi: true
};
var CheckboxControlValueAccessor =
/*@__PURE__*/
function () {
var CheckboxControlValueAccessor =
/*#__PURE__*/
function () {
/**
* @param {?} _renderer
* @param {?} _elementRef
*/
function CheckboxControlValueAccessor(_renderer, _elementRef) {
_classCallCheck(this, CheckboxControlValueAccessor);
this._renderer = _renderer;
this._elementRef = _elementRef;
/**
* \@description
* The registered callback function called when a change event occurs on the input element.
*/
this.onChange =
/**
* @param {?} _
* @return {?}
*/
function (_) {};
/**
* \@description
* The registered callback function called when a blur event occurs on the input element.
*/
this.onTouched =
/**
* @return {?}
*/
function () {};
}
/**
* Sets the "checked" property on the input element.
*
* @param {?} value The checked value
* @return {?}
*/
return _createClass2(CheckboxControlValueAccessor, [{
key: "writeValue",
value: function writeValue(value) {
this._renderer.setProperty(this._elementRef.nativeElement, 'checked', value);
}
/**
* \@description
* Registers a function called when the control value changes.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
this.onChange = fn;
}
/**
* \@description
* Registers a function called when the control is touched.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnTouched",
value: function registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Sets the "disabled" property on the input element.
*
* @param {?} isDisabled The disabled value
* @return {?}
*/
}, {
key: "setDisabledState",
value: function setDisabledState(isDisabled) {
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
}
}]);
}();
CheckboxControlValueAccessor.ɵfac = function CheckboxControlValueAccessor_Factory(t) {
return new (t || CheckboxControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]));
};
CheckboxControlValueAccessor.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: CheckboxControlValueAccessor,
selectors: [["input", "type", "checkbox", "formControlName", ""], ["input", "type", "checkbox", "formControl", ""], ["input", "type", "checkbox", "ngModel", ""]],
hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("change", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {
return ctx.onChange($event.target.checked);
})("blur", function CheckboxControlValueAccessor_blur_HostBindingHandler() {
return ctx.onTouched();
});
}
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([CHECKBOX_VALUE_ACCESSOR])]
});
return CheckboxControlValueAccessor;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/default_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var DEFAULT_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return DefaultValueAccessor;
}),
multi: true
};
/**
* We must check whether the agent is Android because composition events
* behave differently between iOS and Android.
* @return {?}
*/
function _isAndroid() {
/** @type {?} */
var userAgent = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* ɵgetDOM */
"z"])() ? Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* ɵgetDOM */
"z"])().getUserAgent() : '';
return /android (\d+)/.test(userAgent.toLowerCase());
}
/**
* \@description
* Provide this token to control if form directives buffer IME input until
* the "compositionend" event occurs.
* \@publicApi
* @type {?}
*/
var COMPOSITION_BUFFER_MODE =
/*@__PURE__*/
new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* InjectionToken */
"t"]('CompositionEventMode');
var DefaultValueAccessor =
/*@__PURE__*/
function () {
var DefaultValueAccessor =
/*#__PURE__*/
function () {
/**
* @param {?} _renderer
* @param {?} _elementRef
* @param {?} _compositionMode
*/
function DefaultValueAccessor(_renderer, _elementRef, _compositionMode) {
_classCallCheck(this, DefaultValueAccessor);
this._renderer = _renderer;
this._elementRef = _elementRef;
this._compositionMode = _compositionMode;
/**
* \@description
* The registered callback function called when an input event occurs on the input element.
*/
this.onChange =
/**
* @param {?} _
* @return {?}
*/
function (_) {};
/**
* \@description
* The registered callback function called when a blur event occurs on the input element.
*/
this.onTouched =
/**
* @return {?}
*/
function () {};
/**
* Whether the user is creating a composition string (IME events).
*/
this._composing = false;
if (this._compositionMode == null) {
this._compositionMode = !_isAndroid();
}
}
/**
* Sets the "value" property on the input element.
*
* @param {?} value The checked value
* @return {?}
*/
return _createClass2(DefaultValueAccessor, [{
key: "writeValue",
value: function writeValue(value) {
/** @type {?} */
var normalizedValue = value == null ? '' : value;
this._renderer.setProperty(this._elementRef.nativeElement, 'value', normalizedValue);
}
/**
* \@description
* Registers a function called when the control value changes.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
this.onChange = fn;
}
/**
* \@description
* Registers a function called when the control is touched.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnTouched",
value: function registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Sets the "disabled" property on the input element.
*
* @param {?} isDisabled The disabled value
* @return {?}
*/
}, {
key: "setDisabledState",
value: function setDisabledState(isDisabled) {
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_handleInput",
value: function _handleInput(value) {
if (!this._compositionMode || this._compositionMode && !this._composing) {
this.onChange(value);
}
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_compositionStart",
value: function _compositionStart() {
this._composing = true;
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_compositionEnd",
value: function _compositionEnd(value) {
this._composing = false;
this._compositionMode && this.onChange(value);
}
}]);
}();
DefaultValueAccessor.ɵfac = function DefaultValueAccessor_Factory(t) {
return new (t || DefaultValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](COMPOSITION_BUFFER_MODE, 8));
};
DefaultValueAccessor.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: DefaultValueAccessor,
selectors: [["input", "formControlName", "", 3, "type", "checkbox"], ["textarea", "formControlName", ""], ["input", "formControl", "", 3, "type", "checkbox"], ["textarea", "formControl", ""], ["input", "ngModel", "", 3, "type", "checkbox"], ["textarea", "ngModel", ""], ["", "ngDefaultControl", ""]],
hostBindings: function DefaultValueAccessor_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("input", function DefaultValueAccessor_input_HostBindingHandler($event) {
return ctx._handleInput($event.target.value);
})("blur", function DefaultValueAccessor_blur_HostBindingHandler() {
return ctx.onTouched();
})("compositionstart", function DefaultValueAccessor_compositionstart_HostBindingHandler() {
return ctx._compositionStart();
})("compositionend", function DefaultValueAccessor_compositionend_HostBindingHandler($event) {
return ctx._compositionEnd($event.target.value);
});
}
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([DEFAULT_VALUE_ACCESSOR])]
});
return DefaultValueAccessor;
}();
if (false) {}
var AbstractControlDirective =
/*@__PURE__*/
function () {
var AbstractControlDirective =
/*#__PURE__*/
function () {
function AbstractControlDirective() {
_classCallCheck(this, AbstractControlDirective);
}
return _createClass2(AbstractControlDirective, [{
key: "value",
get:
/**
* \@description
* Reports the value of the control if it is present, otherwise null.
* @return {?}
*/
function get() {
return this.control ? this.control.value : null;
}
/**
* \@description
* Reports whether the control is valid. A control is considered valid if no
* validation errors exist with the current value.
* If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "valid",
get: function get() {
return this.control ? this.control.valid : null;
}
/**
* \@description
* Reports whether the control is invalid, meaning that an error exists in the input value.
* If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "invalid",
get: function get() {
return this.control ? this.control.invalid : null;
}
/**
* \@description
* Reports whether a control is pending, meaning that that async validation is occurring and
* errors are not yet available for the input value. If the control is not present, null is
* returned.
* @return {?}
*/
}, {
key: "pending",
get: function get() {
return this.control ? this.control.pending : null;
}
/**
* \@description
* Reports whether the control is disabled, meaning that the control is disabled
* in the UI and is exempt from validation checks and excluded from aggregate
* values of ancestor controls. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "disabled",
get: function get() {
return this.control ? this.control.disabled : null;
}
/**
* \@description
* Reports whether the control is enabled, meaning that the control is included in ancestor
* calculations of validity or value. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "enabled",
get: function get() {
return this.control ? this.control.enabled : null;
}
/**
* \@description
* Reports the control's validation errors. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "errors",
get: function get() {
return this.control ? this.control.errors : null;
}
/**
* \@description
* Reports whether the control is pristine, meaning that the user has not yet changed
* the value in the UI. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "pristine",
get: function get() {
return this.control ? this.control.pristine : null;
}
/**
* \@description
* Reports whether the control is dirty, meaning that the user has changed
* the value in the UI. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "dirty",
get: function get() {
return this.control ? this.control.dirty : null;
}
/**
* \@description
* Reports whether the control is touched, meaning that the user has triggered
* a `blur` event on it. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "touched",
get: function get() {
return this.control ? this.control.touched : null;
}
/**
* \@description
* Reports the validation status of the control. Possible values include:
* 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.
* If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "status",
get: function get() {
return this.control ? this.control.status : null;
}
/**
* \@description
* Reports whether the control is untouched, meaning that the user has not yet triggered
* a `blur` event on it. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "untouched",
get: function get() {
return this.control ? this.control.untouched : null;
}
/**
* \@description
* Returns a multicasting observable that emits a validation status whenever it is
* calculated for the control. If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "statusChanges",
get: function get() {
return this.control ? this.control.statusChanges : null;
}
/**
* \@description
* Returns a multicasting observable of value changes for the control that emits every time the
* value of the control changes in the UI or programmatically.
* If the control is not present, null is returned.
* @return {?}
*/
}, {
key: "valueChanges",
get: function get() {
return this.control ? this.control.valueChanges : null;
}
/**
* \@description
* Returns an array that represents the path from the top-level form to this control.
* Each index is the string name of the control on that level.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return null;
}
/**
* \@description
* Resets the control with the provided value if the control is present.
* @param {?=} value
* @return {?}
*/
}, {
key: "reset",
value: function reset() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
if (this.control) this.control.reset(value);
}
/**
* \@description
* Reports whether the control with the given path has the error specified.
*
* \@usageNotes
* For example, for the following `FormGroup`:
*
* ```
* form = new FormGroup({
* address: new FormGroup({ street: new FormControl() })
* });
* ```
*
* The path to the 'street' control from the root form would be 'address' -> 'street'.
*
* It can be provided to this method in one of two formats:
*
* 1. An array of string control names, e.g. `['address', 'street']`
* 1. A period-delimited list of control names in one string, e.g. `'address.street'`
*
* If no path is given, this method checks for the error on the current control.
*
* @param {?} errorCode The code of the error to check
* @param {?=} path A list of control names that designates how to move from the current control
* to the control that should be queried for errors.
*
* @return {?} whether the given error is present in the control at the given path.
*
* If the control is not present, false is returned.
*/
}, {
key: "hasError",
value: function hasError(errorCode, path) {
return this.control ? this.control.hasError(errorCode, path) : false;
}
/**
* \@description
* Reports error data for the control with the given path.
*
* \@usageNotes
* For example, for the following `FormGroup`:
*
* ```
* form = new FormGroup({
* address: new FormGroup({ street: new FormControl() })
* });
* ```
*
* The path to the 'street' control from the root form would be 'address' -> 'street'.
*
* It can be provided to this method in one of two formats:
*
* 1. An array of string control names, e.g. `['address', 'street']`
* 1. A period-delimited list of control names in one string, e.g. `'address.street'`
*
* @param {?} errorCode The code of the error to check
* @param {?=} path A list of control names that designates how to move from the current control
* to the control that should be queried for errors.
*
* @return {?} error data for that particular error. If the control or error is not present,
* null is returned.
*/
}, {
key: "getError",
value: function getError(errorCode, path) {
return this.control ? this.control.getError(errorCode, path) : null;
}
}]);
}();
AbstractControlDirective.ɵfac = function AbstractControlDirective_Factory(t) {
return new (t || AbstractControlDirective)();
};
AbstractControlDirective.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: AbstractControlDirective
});
return AbstractControlDirective;
}();
if (false) {}
var ControlContainer =
/*@__PURE__*/
function () {
var ControlContainer =
/*#__PURE__*/
function (_AbstractControlDirec) {
function ControlContainer() {
_classCallCheck(this, ControlContainer);
return _callSuper(this, ControlContainer, arguments);
}
_inherits(ControlContainer, _AbstractControlDirec);
return _createClass2(ControlContainer, [{
key: "formDirective",
get:
/**
* \@description
* The top-level form directive for the control.
* @return {?}
*/
function get() {
return null;
}
/**
* \@description
* The path to this group.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return null;
}
}]);
}(AbstractControlDirective);
ControlContainer.ɵfac = function ControlContainer_Factory(t) {
return ɵControlContainer_BaseFactory(t || ControlContainer);
};
ControlContainer.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: ControlContainer,
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return ControlContainer;
}();
var ɵControlContainer_BaseFactory =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵgetInheritedFactory */
"cc"](ControlContainer);
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/ng_control.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @return {?}
*/
function unimplemented() {
throw new Error('unimplemented');
}
/**
* \@description
* A base class that all control `FormControl`-based directives extend. It binds a `FormControl`
* object to a DOM element.
*
* \@publicApi
* @abstract
*/
var NgControl =
/*#__PURE__*/
function (_AbstractControlDirec2) {
function NgControl() {
var _this5;
_classCallCheck(this, NgControl);
_this5 = _callSuper(this, NgControl, arguments);
/**
* \@description
* The parent form for the control.
*
* \@internal
*/
_this5._parent = null;
/**
* \@description
* The name for the control
*/
_this5.name = null;
/**
* \@description
* The value accessor for the control
*/
_this5.valueAccessor = null;
/**
* \@description
* The uncomposed array of synchronous validators for the control
*
* \@internal
*/
_this5._rawValidators = [];
/**
* \@description
* The uncomposed array of async validators for the control
*
* \@internal
*/
_this5._rawAsyncValidators = [];
return _this5;
}
/**
* \@description
* The registered synchronous validator function for the control
*
* @throws An exception that this method is not implemented
* @return {?}
*/
_inherits(NgControl, _AbstractControlDirec2);
return _createClass2(NgControl, [{
key: "validator",
get: function get() {
return (
/** @type {?} */
unimplemented()
);
}
/**
* \@description
* The registered async validator function for the control
*
* @throws An exception that this method is not implemented
* @return {?}
*/
}, {
key: "asyncValidator",
get: function get() {
return (
/** @type {?} */
unimplemented()
);
}
}]);
}(AbstractControlDirective);
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/ng_control_status.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AbstractControlStatus =
/*#__PURE__*/
function () {
/**
* @param {?} cd
*/
function AbstractControlStatus(cd) {
_classCallCheck(this, AbstractControlStatus);
this._cd = cd;
}
/**
* @return {?}
*/
return _createClass2(AbstractControlStatus, [{
key: "ngClassUntouched",
get: function get() {
return this._cd.control ? this._cd.control.untouched : false;
}
/**
* @return {?}
*/
}, {
key: "ngClassTouched",
get: function get() {
return this._cd.control ? this._cd.control.touched : false;
}
/**
* @return {?}
*/
}, {
key: "ngClassPristine",
get: function get() {
return this._cd.control ? this._cd.control.pristine : false;
}
/**
* @return {?}
*/
}, {
key: "ngClassDirty",
get: function get() {
return this._cd.control ? this._cd.control.dirty : false;
}
/**
* @return {?}
*/
}, {
key: "ngClassValid",
get: function get() {
return this._cd.control ? this._cd.control.valid : false;
}
/**
* @return {?}
*/
}, {
key: "ngClassInvalid",
get: function get() {
return this._cd.control ? this._cd.control.invalid : false;
}
/**
* @return {?}
*/
}, {
key: "ngClassPending",
get: function get() {
return this._cd.control ? this._cd.control.pending : false;
}
}]);
}();
if (false) {}
/** @type {?} */
var ngControlStatusHost = {
'[class.ng-untouched]': 'ngClassUntouched',
'[class.ng-touched]': 'ngClassTouched',
'[class.ng-pristine]': 'ngClassPristine',
'[class.ng-dirty]': 'ngClassDirty',
'[class.ng-valid]': 'ngClassValid',
'[class.ng-invalid]': 'ngClassInvalid',
'[class.ng-pending]': 'ngClassPending'
};
var NgControlStatus =
/*@__PURE__*/
function () {
var NgControlStatus =
/*#__PURE__*/
function (_AbstractControlStatu) {
/**
* @param {?} cd
*/
function NgControlStatus(cd) {
_classCallCheck(this, NgControlStatus);
return _callSuper(this, NgControlStatus, [cd]);
}
_inherits(NgControlStatus, _AbstractControlStatu);
return _createClass2(NgControlStatus);
}(AbstractControlStatus);
NgControlStatus.ɵfac = function NgControlStatus_Factory(t) {
return new (t || NgControlStatus)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NgControl, 2));
};
NgControlStatus.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: NgControlStatus,
selectors: [["", "formControlName", ""], ["", "ngModel", ""], ["", "formControl", ""]],
hostVars: 14,
hostBindings: function NgControlStatus_HostBindings(rf, ctx) {
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵclassProp */
"Mb"]("ng-untouched", ctx.ngClassUntouched)("ng-touched", ctx.ngClassTouched)("ng-pristine", ctx.ngClassPristine)("ng-dirty", ctx.ngClassDirty)("ng-valid", ctx.ngClassValid)("ng-invalid", ctx.ngClassInvalid)("ng-pending", ctx.ngClassPending);
}
},
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return NgControlStatus;
}();
var NgControlStatusGroup =
/*@__PURE__*/
function () {
var NgControlStatusGroup =
/*#__PURE__*/
function (_AbstractControlStatu2) {
/**
* @param {?} cd
*/
function NgControlStatusGroup(cd) {
_classCallCheck(this, NgControlStatusGroup);
return _callSuper(this, NgControlStatusGroup, [cd]);
}
_inherits(NgControlStatusGroup, _AbstractControlStatu2);
return _createClass2(NgControlStatusGroup);
}(AbstractControlStatus);
NgControlStatusGroup.ɵfac = function NgControlStatusGroup_Factory(t) {
return new (t || NgControlStatusGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](ControlContainer, 2));
};
NgControlStatusGroup.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: NgControlStatusGroup,
selectors: [["", "formGroupName", ""], ["", "formArrayName", ""], ["", "ngModelGroup", ""], ["", "formGroup", ""], ["form", 3, "ngNoForm", ""], ["", "ngForm", ""]],
hostVars: 14,
hostBindings: function NgControlStatusGroup_HostBindings(rf, ctx) {
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵclassProp */
"Mb"]("ng-untouched", ctx.ngClassUntouched)("ng-touched", ctx.ngClassTouched)("ng-pristine", ctx.ngClassPristine)("ng-dirty", ctx.ngClassDirty)("ng-valid", ctx.ngClassValid)("ng-invalid", ctx.ngClassInvalid)("ng-pending", ctx.ngClassPending);
}
},
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return NgControlStatusGroup;
}();
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/validators.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} value
* @return {?}
*/
function isEmptyInputValue(value) {
// we don't check for string here so it also works with arrays
return value == null || value.length === 0;
}
/**
* \@description
* An `InjectionToken` for registering additional synchronous validators used with `AbstractControl`s.
*
* @see `NG_ASYNC_VALIDATORS`
*
* \@usageNotes
*
* ### Providing a custom validator
*
* The following example registers a custom validator directive. Adding the validator to the
* existing collection of validators requires the `multi: true` option.
*
* ```typescript
* \@Directive({
* selector: '[customValidator]',
* providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]
* })
* class CustomValidatorDirective implements Validator {
* validate(control: AbstractControl): ValidationErrors | null {
* return { 'custom': true };
* }
* }
* ```
*
* \@publicApi
* @type {?}
*/
var NG_VALIDATORS =
/*@__PURE__*/
new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* InjectionToken */
"t"]('NgValidators');
/**
* \@description
* An `InjectionToken` for registering additional asynchronous validators used with `AbstractControl`s.
*
* @see `NG_VALIDATORS`
*
* \@publicApi
* @type {?}
*/
var NG_ASYNC_VALIDATORS =
/*@__PURE__*/
new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* InjectionToken */
"t"]('NgAsyncValidators');
/**
* A regular expression that matches valid e-mail addresses.
*
* At a high level, this regexp matches e-mail addresses of the format `local-part\@tld`, where:
* - `local-part` consists of one or more of the allowed characters (alphanumeric and some
* punctuation symbols).
* - `local-part` cannot begin or end with a period (`.`).
* - `local-part` cannot be longer than 64 characters.
* - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or
* `foo.com`.
* - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and
* periods (`.`)).
* - A `label` cannot begin or end with a dash (`-`) or a period (`.`).
* - A `label` cannot be longer than 63 characters.
* - The whole address cannot be longer than 254 characters.
*
* ## Implementation background
*
* This regexp was ported over from AngularJS (see there for git history):
* https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27
* It is based on the
* [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
* some enhancements to incorporate more RFC rules (such as rules related to domain names and the
* lengths of different parts of the address). The main differences from the WHATWG version are:
* - Disallow `local-part` to begin or end with a period (`.`).
* - Disallow `local-part` length to exceed 64 characters.
* - Disallow total address length to exceed 254 characters.
*
* See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.
* @type {?}
*/
var EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
/**
* \@description
* Provides a set of built-in validators that can be used by form controls.
*
* A validator is a function that processes a `FormControl` or collection of
* controls and returns an error map or null. A null map means that validation has passed.
*
* @see [Form Validation](/guide/form-validation)
*
* \@publicApi
*/
var Validators =
/*#__PURE__*/
function () {
function Validators() {
_classCallCheck(this, Validators);
}
return _createClass2(Validators, null, [{
key: "min",
value:
/**
* \@description
* Validator that requires the control's value to be greater than or equal to the provided number.
* The validator exists only as a function and not as a directive.
*
* \@usageNotes
*
* ### Validate against a minimum of 3
*
* ```typescript
* const control = new FormControl(2, Validators.min(3));
*
* console.log(control.errors); // {min: {min: 3, actual: 2}}
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} min
* @return {?} A validator function that returns an error map with the
* `min` property if the validation check fails, otherwise `null`.
*
*/
function min(_min2) {
return (
/**
* @param {?} control
* @return {?}
*/
function (control) {
if (isEmptyInputValue(control.value) || isEmptyInputValue(_min2)) {
return null; // don't validate empty values to allow optional controls
}
/** @type {?} */
var value = parseFloat(control.value); // Controls with NaN values after parsing should be treated as not having a
// minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
return !isNaN(value) && value < _min2 ? {
'min': {
'min': _min2,
'actual': control.value
}
} : null;
}
);
}
/**
* \@description
* Validator that requires the control's value to be less than or equal to the provided number.
* The validator exists only as a function and not as a directive.
*
* \@usageNotes
*
* ### Validate against a maximum of 15
*
* ```typescript
* const control = new FormControl(16, Validators.max(15));
*
* console.log(control.errors); // {max: {max: 15, actual: 16}}
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} max
* @return {?} A validator function that returns an error map with the
* `max` property if the validation check fails, otherwise `null`.
*
*/
}, {
key: "max",
value: function max(_max) {
return (
/**
* @param {?} control
* @return {?}
*/
function (control) {
if (isEmptyInputValue(control.value) || isEmptyInputValue(_max)) {
return null; // don't validate empty values to allow optional controls
}
/** @type {?} */
var value = parseFloat(control.value); // Controls with NaN values after parsing should be treated as not having a
// maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
return !isNaN(value) && value > _max ? {
'max': {
'max': _max,
'actual': control.value
}
} : null;
}
);
}
/**
* \@description
* Validator that requires the control have a non-empty value.
*
* \@usageNotes
*
* ### Validate that the field is non-empty
*
* ```typescript
* const control = new FormControl('', Validators.required);
*
* console.log(control.errors); // {required: true}
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} control
* @return {?} An error map with the `required` property
* if the validation check fails, otherwise `null`.
*
*/
}, {
key: "required",
value: function required(control) {
return isEmptyInputValue(control.value) ? {
'required': true
} : null;
}
/**
* \@description
* Validator that requires the control's value be true. This validator is commonly
* used for required checkboxes.
*
* \@usageNotes
*
* ### Validate that the field value is true
*
* ```typescript
* const control = new FormControl('', Validators.requiredTrue);
*
* console.log(control.errors); // {required: true}
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} control
* @return {?} An error map that contains the `required` property
* set to `true` if the validation check fails, otherwise `null`.
*
*/
}, {
key: "requiredTrue",
value: function requiredTrue(control) {
return control.value === true ? null : {
'required': true
};
}
/**
* \@description
* Validator that requires the control's value pass an email validation test.
*
* Tests the value using a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
* pattern suitable for common usecases. The pattern is based on the definition of a valid email
* address in the [WHATWG HTML specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address)
* with some enhancements to incorporate more RFC rules (such as rules related to domain names and
* the lengths of different parts of the address).
*
* The differences from the WHATWG version include:
* - Disallow `local-part` (the part before the `\@` symbol) to begin or end with a period (`.`).
* - Disallow `local-part` to be longer than 64 characters.
* - Disallow the whole address to be longer than 254 characters.
*
* If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to
* validate the value against a different pattern.
*
* \@usageNotes
*
* ### Validate that the field matches a valid email pattern
*
* ```typescript
* const control = new FormControl('bad\@', Validators.email);
*
* console.log(control.errors); // {email: true}
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} control
* @return {?} An error map with the `email` property
* if the validation check fails, otherwise `null`.
*
*/
}, {
key: "email",
value: function email(control) {
if (isEmptyInputValue(control.value)) {
return null; // don't validate empty values to allow optional controls
}
return EMAIL_REGEXP.test(control.value) ? null : {
'email': true
};
}
/**
* \@description
* Validator that requires the length of the control's value to be greater than or equal
* to the provided minimum length. This validator is also provided by default if you use the
* the HTML5 `minlength` attribute.
*
* \@usageNotes
*
* ### Validate that the field has a minimum of 3 characters
*
* ```typescript
* const control = new FormControl('ng', Validators.minLength(3));
*
* console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}
* ```
*
* ```html
*
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} minLength
* @return {?} A validator function that returns an error map with the
* `minlength` if the validation check fails, otherwise `null`.
*
*/
}, {
key: "minLength",
value: function minLength(_minLength) {
return (
/**
* @param {?} control
* @return {?}
*/
function (control) {
if (isEmptyInputValue(control.value)) {
return null; // don't validate empty values to allow optional controls
}
/** @type {?} */
var length = control.value ? control.value.length : 0;
return length < _minLength ? {
'minlength': {
'requiredLength': _minLength,
'actualLength': length
}
} : null;
}
);
}
/**
* \@description
* Validator that requires the length of the control's value to be less than or equal
* to the provided maximum length. This validator is also provided by default if you use the
* the HTML5 `maxlength` attribute.
*
* \@usageNotes
*
* ### Validate that the field has maximum of 5 characters
*
* ```typescript
* const control = new FormControl('Angular', Validators.maxLength(5));
*
* console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}
* ```
*
* ```html
*
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} maxLength
* @return {?} A validator function that returns an error map with the
* `maxlength` property if the validation check fails, otherwise `null`.
*
*/
}, {
key: "maxLength",
value: function maxLength(_maxLength) {
return (
/**
* @param {?} control
* @return {?}
*/
function (control) {
/** @type {?} */
var length = control.value ? control.value.length : 0;
return length > _maxLength ? {
'maxlength': {
'requiredLength': _maxLength,
'actualLength': length
}
} : null;
}
);
}
/**
* \@description
* Validator that requires the control's value to match a regex pattern. This validator is also
* provided by default if you use the HTML5 `pattern` attribute.
*
* \@usageNotes
*
* ### Validate that the field only contains letters or spaces
*
* ```typescript
* const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));
*
* console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}
* ```
*
* ```html
*
* ```
*
* @see `updateValueAndValidity()`
*
* @param {?} pattern A regular expression to be used as is to test the values, or a string.
* If a string is passed, the `^` character is prepended and the `$` character is
* appended to the provided string (if not already present), and the resulting regular
* expression is used to test the values.
*
* @return {?} A validator function that returns an error map with the
* `pattern` property if the validation check fails, otherwise `null`.
*
*/
}, {
key: "pattern",
value: function pattern(_pattern) {
if (!_pattern) return Validators.nullValidator;
/** @type {?} */
var regex;
/** @type {?} */
var regexStr;
if (typeof _pattern === 'string') {
regexStr = '';
if (_pattern.charAt(0) !== '^') regexStr += '^';
regexStr += _pattern;
if (_pattern.charAt(_pattern.length - 1) !== '$') regexStr += '$';
regex = new RegExp(regexStr);
} else {
regexStr = _pattern.toString();
regex = _pattern;
}
return (
/**
* @param {?} control
* @return {?}
*/
function (control) {
if (isEmptyInputValue(control.value)) {
return null; // don't validate empty values to allow optional controls
}
/** @type {?} */
var value = control.value;
return regex.test(value) ? null : {
'pattern': {
'requiredPattern': regexStr,
'actualValue': value
}
};
}
);
}
/**
* \@description
* Validator that performs no operation.
*
* @see `updateValueAndValidity()`
*
* @param {?} control
* @return {?}
*/
}, {
key: "nullValidator",
value: function nullValidator(control) {
return null;
}
/**
* @param {?} validators
* @return {?}
*/
}, {
key: "compose",
value: function compose(validators) {
if (!validators) return null;
/** @type {?} */
var presentValidators =
/** @type {?} */
validators.filter(isPresent);
if (presentValidators.length == 0) return null;
return (
/**
* @param {?} control
* @return {?}
*/
function (control) {
return _mergeErrors(_executeValidators(control, presentValidators));
}
);
}
/**
* \@description
* Compose multiple async validators into a single function that returns the union
* of the individual error objects for the provided control.
*
* @see `updateValueAndValidity()`
*
* @param {?} validators
* @return {?} A validator function that returns an error map with the
* merged error objects of the async validators if the validation check fails, otherwise `null`.
*
*/
}, {
key: "composeAsync",
value: function composeAsync(validators) {
if (!validators) return null;
/** @type {?} */
var presentValidators =
/** @type {?} */
validators.filter(isPresent);
if (presentValidators.length == 0) return null;
return (
/**
* @param {?} control
* @return {?}
*/
function (control) {
/** @type {?} */
var observables = _executeAsyncValidators(control, presentValidators).map(toObservable);
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__[
/* forkJoin */
"a"])(observables).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__[
/* map */
"a"])(_mergeErrors));
}
);
}
}]);
}();
/**
* @param {?} o
* @return {?}
*/
function isPresent(o) {
return o != null;
}
/**
* @param {?} r
* @return {?}
*/
function toObservable(r) {
/** @type {?} */
var obs = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵisPromise */
"xb"])(r) ? Object(rxjs__WEBPACK_IMPORTED_MODULE_3__[
/* from */
"a"])(r) : r;
if (!Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵisObservable */
"wb"])(obs)) {
throw new Error("Expected validator to return Promise or Observable.");
}
return obs;
}
/**
* @param {?} control
* @param {?} validators
* @return {?}
*/
function _executeValidators(control, validators) {
return validators.map(
/**
* @param {?} v
* @return {?}
*/
/**
* @param {?} v
* @return {?}
*/
function (v) {
return v(control);
});
}
/**
* @param {?} control
* @param {?} validators
* @return {?}
*/
function _executeAsyncValidators(control, validators) {
return validators.map(
/**
* @param {?} v
* @return {?}
*/
/**
* @param {?} v
* @return {?}
*/
function (v) {
return v(control);
});
}
/**
* @param {?} arrayOfErrors
* @return {?}
*/
function _mergeErrors(arrayOfErrors) {
/** @type {?} */
var res = {}; // Not using Array.reduce here due to a Chrome 80 bug
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
arrayOfErrors.forEach(
/**
* @param {?} errors
* @return {?}
*/
function (errors) {
res = errors != null ? Object.assign(Object.assign({},
/** @type {?} */
res), errors) :
/** @type {?} */
res;
});
return Object.keys(res).length === 0 ? null : res;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/normalize_validator.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @param {?} validator
* @return {?}
*/
function normalizeValidator(validator) {
if (
/** @type {?} */
validator.validate) {
return (
/**
* @param {?} c
* @return {?}
*/
function (c) {
return (
/** @type {?} */
validator.validate(c)
);
}
);
} else {
return (
/** @type {?} */
validator
);
}
}
/**
* @param {?} validator
* @return {?}
*/
function normalizeAsyncValidator(validator) {
if (
/** @type {?} */
validator.validate) {
return (
/**
* @param {?} c
* @return {?}
*/
function (c) {
return (
/** @type {?} */
validator.validate(c)
);
}
);
} else {
return (
/** @type {?} */
validator
);
}
}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/number_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var NUMBER_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return NumberValueAccessor;
}),
multi: true
};
var NumberValueAccessor =
/*@__PURE__*/
function () {
var NumberValueAccessor =
/*#__PURE__*/
function () {
/**
* @param {?} _renderer
* @param {?} _elementRef
*/
function NumberValueAccessor(_renderer, _elementRef) {
_classCallCheck(this, NumberValueAccessor);
this._renderer = _renderer;
this._elementRef = _elementRef;
/**
* \@description
* The registered callback function called when a change or input event occurs on the input
* element.
*/
this.onChange =
/**
* @param {?} _
* @return {?}
*/
function (_) {};
/**
* \@description
* The registered callback function called when a blur event occurs on the input element.
*/
this.onTouched =
/**
* @return {?}
*/
function () {};
}
/**
* Sets the "value" property on the input element.
*
* @param {?} value The checked value
* @return {?}
*/
return _createClass2(NumberValueAccessor, [{
key: "writeValue",
value: function writeValue(value) {
// The value needs to be normalized for IE9, otherwise it is set to 'null' when null
/** @type {?} */
var normalizedValue = value == null ? '' : value;
this._renderer.setProperty(this._elementRef.nativeElement, 'value', normalizedValue);
}
/**
* \@description
* Registers a function called when the control value changes.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
this.onChange =
/**
* @param {?} value
* @return {?}
*/
function (value) {
fn(value == '' ? null : parseFloat(value));
};
}
/**
* \@description
* Registers a function called when the control is touched.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnTouched",
value: function registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Sets the "disabled" property on the input element.
*
* @param {?} isDisabled The disabled value
* @return {?}
*/
}, {
key: "setDisabledState",
value: function setDisabledState(isDisabled) {
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
}
}]);
}();
NumberValueAccessor.ɵfac = function NumberValueAccessor_Factory(t) {
return new (t || NumberValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]));
};
NumberValueAccessor.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: NumberValueAccessor,
selectors: [["input", "type", "number", "formControlName", ""], ["input", "type", "number", "formControl", ""], ["input", "type", "number", "ngModel", ""]],
hostBindings: function NumberValueAccessor_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("change", function NumberValueAccessor_change_HostBindingHandler($event) {
return ctx.onChange($event.target.value);
})("input", function NumberValueAccessor_input_HostBindingHandler($event) {
return ctx.onChange($event.target.value);
})("blur", function NumberValueAccessor_blur_HostBindingHandler() {
return ctx.onTouched();
});
}
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([NUMBER_VALUE_ACCESSOR])]
});
return NumberValueAccessor;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/radio_control_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var RADIO_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return RadioControlValueAccessor;
}),
multi: true
};
var RadioControlRegistry =
/*@__PURE__*/
function () {
var RadioControlRegistry =
/*#__PURE__*/
function () {
function RadioControlRegistry() {
_classCallCheck(this, RadioControlRegistry);
this._accessors = [];
}
/**
* \@description
* Adds a control to the internal registry. For internal use only.
* @param {?} control
* @param {?} accessor
* @return {?}
*/
return _createClass2(RadioControlRegistry, [{
key: "add",
value: function add(control, accessor) {
this._accessors.push([control, accessor]);
}
/**
* \@description
* Removes a control from the internal registry. For internal use only.
* @param {?} accessor
* @return {?}
*/
}, {
key: "remove",
value: function remove(accessor) {
for (var i = this._accessors.length - 1; i >= 0; --i) {
if (this._accessors[i][1] === accessor) {
this._accessors.splice(i, 1);
return;
}
}
}
/**
* \@description
* Selects a radio button. For internal use only.
* @param {?} accessor
* @return {?}
*/
}, {
key: "select",
value: function select(accessor) {
var _this6 = this;
this._accessors.forEach(
/**
* @param {?} c
* @return {?}
*/
function (c) {
if (_this6._isSameGroup(c, accessor) && c[1] !== accessor) {
c[1].fireUncheck(accessor.value);
}
});
}
/**
* @private
* @param {?} controlPair
* @param {?} accessor
* @return {?}
*/
}, {
key: "_isSameGroup",
value: function _isSameGroup(controlPair, accessor) {
if (!controlPair[0].control) return false;
return controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name;
}
}]);
}();
RadioControlRegistry.ɵfac = function RadioControlRegistry_Factory(t) {
return new (t || RadioControlRegistry)();
};
RadioControlRegistry.ɵprov =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineInjectable */
"Rb"]({
token: RadioControlRegistry,
factory: RadioControlRegistry.ɵfac
});
return RadioControlRegistry;
}();
if (false) {}
var RadioControlValueAccessor =
/*@__PURE__*/
function () {
var RadioControlValueAccessor =
/*#__PURE__*/
function () {
/**
* @param {?} _renderer
* @param {?} _elementRef
* @param {?} _registry
* @param {?} _injector
*/
function RadioControlValueAccessor(_renderer, _elementRef, _registry, _injector) {
_classCallCheck(this, RadioControlValueAccessor);
this._renderer = _renderer;
this._elementRef = _elementRef;
this._registry = _registry;
this._injector = _injector;
/**
* \@description
* The registered callback function called when a change event occurs on the input element.
*/
this.onChange =
/**
* @return {?}
*/
function () {};
/**
* \@description
* The registered callback function called when a blur event occurs on the input element.
*/
this.onTouched =
/**
* @return {?}
*/
function () {};
}
/**
* \@description
* A lifecycle method called when the directive is initialized. For internal use only.
* @return {?}
*/
return _createClass2(RadioControlValueAccessor, [{
key: "ngOnInit",
value: function ngOnInit() {
this._control = this._injector.get(NgControl);
this._checkName();
this._registry.add(this._control, this);
}
/**
* \@description
* Lifecycle method called before the directive's instance is destroyed. For internal use only.
* @return {?}
*/
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
this._registry.remove(this);
}
/**
* \@description
* Sets the "checked" property value on the radio input element.
*
* @param {?} value The checked value
* @return {?}
*/
}, {
key: "writeValue",
value: function writeValue(value) {
this._state = value === this.value;
this._renderer.setProperty(this._elementRef.nativeElement, 'checked', this._state);
}
/**
* \@description
* Registers a function called when the control value changes.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
var _this7 = this;
this._fn = fn;
this.onChange =
/**
* @return {?}
*/
function () {
fn(_this7.value);
_this7._registry.select(_this7);
};
}
/**
* Sets the "value" on the radio input element and unchecks it.
*
* @param {?} value
* @return {?}
*/
}, {
key: "fireUncheck",
value: function fireUncheck(value) {
this.writeValue(value);
}
/**
* \@description
* Registers a function called when the control is touched.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnTouched",
value: function registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Sets the "disabled" property on the input element.
*
* @param {?} isDisabled The disabled value
* @return {?}
*/
}, {
key: "setDisabledState",
value: function setDisabledState(isDisabled) {
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
}
/**
* @private
* @return {?}
*/
}, {
key: "_checkName",
value: function _checkName() {
if (this.name && this.formControlName && this.name !== this.formControlName) {
this._throwNameError();
}
if (!this.name && this.formControlName) this.name = this.formControlName;
}
/**
* @private
* @return {?}
*/
}, {
key: "_throwNameError",
value: function _throwNameError() {
throw new Error("\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ");
}
}]);
}();
RadioControlValueAccessor.ɵfac = function RadioControlValueAccessor_Factory(t) {
return new (t || RadioControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](RadioControlRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Injector */
"u"]));
};
RadioControlValueAccessor.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: RadioControlValueAccessor,
selectors: [["input", "type", "radio", "formControlName", ""], ["input", "type", "radio", "formControl", ""], ["input", "type", "radio", "ngModel", ""]],
hostBindings: function RadioControlValueAccessor_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("change", function RadioControlValueAccessor_change_HostBindingHandler() {
return ctx.onChange();
})("blur", function RadioControlValueAccessor_blur_HostBindingHandler() {
return ctx.onTouched();
});
}
},
inputs: {
name: "name",
formControlName: "formControlName",
value: "value"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([RADIO_VALUE_ACCESSOR])]
});
return RadioControlValueAccessor;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/range_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var RANGE_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return RangeValueAccessor;
}),
multi: true
};
var RangeValueAccessor =
/*@__PURE__*/
function () {
var RangeValueAccessor =
/*#__PURE__*/
function () {
/**
* @param {?} _renderer
* @param {?} _elementRef
*/
function RangeValueAccessor(_renderer, _elementRef) {
_classCallCheck(this, RangeValueAccessor);
this._renderer = _renderer;
this._elementRef = _elementRef;
/**
* \@description
* The registered callback function called when a change or input event occurs on the input
* element.
*/
this.onChange =
/**
* @param {?} _
* @return {?}
*/
function (_) {};
/**
* \@description
* The registered callback function called when a blur event occurs on the input element.
*/
this.onTouched =
/**
* @return {?}
*/
function () {};
}
/**
* Sets the "value" property on the input element.
*
* @param {?} value The checked value
* @return {?}
*/
return _createClass2(RangeValueAccessor, [{
key: "writeValue",
value: function writeValue(value) {
this._renderer.setProperty(this._elementRef.nativeElement, 'value', parseFloat(value));
}
/**
* \@description
* Registers a function called when the control value changes.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
this.onChange =
/**
* @param {?} value
* @return {?}
*/
function (value) {
fn(value == '' ? null : parseFloat(value));
};
}
/**
* \@description
* Registers a function called when the control is touched.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnTouched",
value: function registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Sets the "disabled" property on the range input element.
*
* @param {?} isDisabled The disabled value
* @return {?}
*/
}, {
key: "setDisabledState",
value: function setDisabledState(isDisabled) {
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
}
}]);
}();
RangeValueAccessor.ɵfac = function RangeValueAccessor_Factory(t) {
return new (t || RangeValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]));
};
RangeValueAccessor.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: RangeValueAccessor,
selectors: [["input", "type", "range", "formControlName", ""], ["input", "type", "range", "formControl", ""], ["input", "type", "range", "ngModel", ""]],
hostBindings: function RangeValueAccessor_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("change", function RangeValueAccessor_change_HostBindingHandler($event) {
return ctx.onChange($event.target.value);
})("input", function RangeValueAccessor_input_HostBindingHandler($event) {
return ctx.onChange($event.target.value);
})("blur", function RangeValueAccessor_blur_HostBindingHandler() {
return ctx.onTouched();
});
}
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([RANGE_VALUE_ACCESSOR])]
});
return RangeValueAccessor;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/error_examples.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** @type {?} */
var FormErrorExamples = {
formControlName: "\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });",
formGroupName: "\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });",
formArrayName: "\n \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl('SF')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });",
ngModelGroup: "\n ",
ngModelWithFormGroup: "\n \n \n \n
\n "
};
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/reactive_errors.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ReactiveErrors =
/*#__PURE__*/
function () {
function ReactiveErrors() {
_classCallCheck(this, ReactiveErrors);
}
return _createClass2(ReactiveErrors, null, [{
key: "controlParentException",
value:
/**
* @return {?}
*/
function controlParentException() {
throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(FormErrorExamples.formControlName));
}
/**
* @return {?}
*/
}, {
key: "ngModelGroupException",
value: function ngModelGroupException() {
throw new Error("formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ".concat(FormErrorExamples.formGroupName, "\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(FormErrorExamples.ngModelGroup));
}
/**
* @return {?}
*/
}, {
key: "missingFormException",
value: function missingFormException() {
throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(FormErrorExamples.formControlName));
}
/**
* @return {?}
*/
}, {
key: "groupParentException",
value: function groupParentException() {
throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(FormErrorExamples.formGroupName));
}
/**
* @return {?}
*/
}, {
key: "arrayParentException",
value: function arrayParentException() {
throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(FormErrorExamples.formArrayName));
}
/**
* @return {?}
*/
}, {
key: "disabledAttrWarning",
value: function disabledAttrWarning() {
console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ");
}
/**
* @param {?} directiveName
* @return {?}
*/
}, {
key: "ngModelWarning",
value: function ngModelWarning(directiveName) {
console.warn("\n It looks like you're using ngModel on the same form field as ".concat(directiveName, ". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat(directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName', "#use-with-ngmodel\n "));
}
}]);
}();
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/select_control_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var SELECT_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return SelectControlValueAccessor;
}),
multi: true
};
/**
* @param {?} id
* @param {?} value
* @return {?}
*/
function _buildValueString(id, value) {
if (id == null) return "".concat(value);
if (value && typeof value === 'object') value = 'Object';
return "".concat(id, ": ").concat(value).slice(0, 50);
}
/**
* @param {?} valueString
* @return {?}
*/
function _extractId(valueString) {
return valueString.split(':')[0];
}
var SelectControlValueAccessor =
/*@__PURE__*/
function () {
var SelectControlValueAccessor =
/*#__PURE__*/
function () {
/**
* @param {?} _renderer
* @param {?} _elementRef
*/
function SelectControlValueAccessor(_renderer, _elementRef) {
_classCallCheck(this, SelectControlValueAccessor);
this._renderer = _renderer;
this._elementRef = _elementRef;
/**
* \@internal
*/
this._optionMap = new Map();
/**
* \@internal
*/
this._idCounter = 0;
/**
* \@description
* The registered callback function called when a change event occurs on the input element.
*/
this.onChange =
/**
* @param {?} _
* @return {?}
*/
function (_) {};
/**
* \@description
* The registered callback function called when a blur event occurs on the input element.
*/
this.onTouched =
/**
* @return {?}
*/
function () {};
this._compareWith = _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵlooseIdentical */
"yb"];
}
/**
* \@description
* Tracks the option comparison algorithm for tracking identities when
* checking for changes.
* @param {?} fn
* @return {?}
*/
return _createClass2(SelectControlValueAccessor, [{
key: "compareWith",
set: function set(fn) {
if (typeof fn !== 'function') {
throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(fn)));
}
this._compareWith = fn;
}
/**
* Sets the "value" property on the input element. The "selectedIndex"
* property is also set if an ID is provided on the option element.
*
* @param {?} value The checked value
* @return {?}
*/
}, {
key: "writeValue",
value: function writeValue(value) {
this.value = value;
/** @type {?} */
var id = this._getOptionId(value);
if (id == null) {
this._renderer.setProperty(this._elementRef.nativeElement, 'selectedIndex', -1);
}
/** @type {?} */
var valueString = _buildValueString(id, value);
this._renderer.setProperty(this._elementRef.nativeElement, 'value', valueString);
}
/**
* \@description
* Registers a function called when the control value changes.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
var _this8 = this;
this.onChange =
/**
* @param {?} valueString
* @return {?}
*/
function (valueString) {
_this8.value = _this8._getOptionValue(valueString);
fn(_this8.value);
};
}
/**
* \@description
* Registers a function called when the control is touched.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnTouched",
value: function registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Sets the "disabled" property on the select input element.
*
* @param {?} isDisabled The disabled value
* @return {?}
*/
}, {
key: "setDisabledState",
value: function setDisabledState(isDisabled) {
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_registerOption",
value: function _registerOption() {
return (this._idCounter++).toString();
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_getOptionId",
value: function _getOptionId(value) {
for (var _i2 = 0, _Array$from = Array.from(this._optionMap.keys()); _i2 < _Array$from.length; _i2++) {
var id = _Array$from[_i2];
if (this._compareWith(this._optionMap.get(id), value)) return id;
}
return null;
}
/**
* \@internal
* @param {?} valueString
* @return {?}
*/
}, {
key: "_getOptionValue",
value: function _getOptionValue(valueString) {
/** @type {?} */
var id = _extractId(valueString);
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
}
}]);
}();
SelectControlValueAccessor.ɵfac = function SelectControlValueAccessor_Factory(t) {
return new (t || SelectControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]));
};
SelectControlValueAccessor.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: SelectControlValueAccessor,
selectors: [["select", "formControlName", "", 3, "multiple", ""], ["select", "formControl", "", 3, "multiple", ""], ["select", "ngModel", "", 3, "multiple", ""]],
hostBindings: function SelectControlValueAccessor_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("change", function SelectControlValueAccessor_change_HostBindingHandler($event) {
return ctx.onChange($event.target.value);
})("blur", function SelectControlValueAccessor_blur_HostBindingHandler() {
return ctx.onTouched();
});
}
},
inputs: {
compareWith: "compareWith"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([SELECT_VALUE_ACCESSOR])]
});
return SelectControlValueAccessor;
}();
if (false) {}
var NgSelectOption =
/*@__PURE__*/
function () {
var NgSelectOption =
/*#__PURE__*/
function () {
/**
* @param {?} _element
* @param {?} _renderer
* @param {?} _select
*/
function NgSelectOption(_element, _renderer, _select) {
_classCallCheck(this, NgSelectOption);
this._element = _element;
this._renderer = _renderer;
this._select = _select;
if (this._select) this.id = this._select._registerOption();
}
/**
* \@description
* Tracks the value bound to the option element. Unlike the value binding,
* ngValue supports binding to objects.
* @param {?} value
* @return {?}
*/
return _createClass2(NgSelectOption, [{
key: "ngValue",
set: function set(value) {
if (this._select == null) return;
this._select._optionMap.set(this.id, value);
this._setElementValue(_buildValueString(this.id, value));
this._select.writeValue(this._select.value);
}
/**
* \@description
* Tracks simple string values bound to the option element.
* For objects, use the `ngValue` input binding.
* @param {?} value
* @return {?}
*/
}, {
key: "value",
set: function set(value) {
this._setElementValue(value);
if (this._select) this._select.writeValue(this._select.value);
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_setElementValue",
value: function _setElementValue(value) {
this._renderer.setProperty(this._element.nativeElement, 'value', value);
}
/**
* \@description
* Lifecycle method called before the directive's instance is destroyed. For internal use only.
* @return {?}
*/
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
if (this._select) {
this._select._optionMap["delete"](this.id);
this._select.writeValue(this._select.value);
}
}
}]);
}();
NgSelectOption.ɵfac = function NgSelectOption_Factory(t) {
return new (t || NgSelectOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](SelectControlValueAccessor, 9));
};
NgSelectOption.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: NgSelectOption,
selectors: [["option"]],
inputs: {
ngValue: "ngValue",
value: "value"
}
});
return NgSelectOption;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/select_multiple_control_value_accessor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var SELECT_MULTIPLE_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return SelectMultipleControlValueAccessor;
}),
multi: true
};
/**
* @param {?} id
* @param {?} value
* @return {?}
*/
function _buildValueString$1(id, value) {
if (id == null) return "".concat(value);
if (typeof value === 'string') value = "'".concat(value, "'");
if (value && typeof value === 'object') value = 'Object';
return "".concat(id, ": ").concat(value).slice(0, 50);
}
/**
* @param {?} valueString
* @return {?}
*/
function _extractId$1(valueString) {
return valueString.split(':')[0];
}
/**
* Mock interface for HTML Options
* @record
*/
function HTMLOption() {}
if (false) {}
/**
* Mock interface for HTMLCollection
* @abstract
*/
var HTMLCollection =
/*#__PURE__*/
_createClass2(function HTMLCollection() {
_classCallCheck(this, HTMLCollection);
});
if (false) {}
var SelectMultipleControlValueAccessor =
/*@__PURE__*/
function () {
var SelectMultipleControlValueAccessor =
/*#__PURE__*/
function () {
/**
* @param {?} _renderer
* @param {?} _elementRef
*/
function SelectMultipleControlValueAccessor(_renderer, _elementRef) {
_classCallCheck(this, SelectMultipleControlValueAccessor);
this._renderer = _renderer;
this._elementRef = _elementRef;
/**
* \@internal
*/
this._optionMap = new Map();
/**
* \@internal
*/
this._idCounter = 0;
/**
* \@description
* The registered callback function called when a change event occurs on the input element.
*/
this.onChange =
/**
* @param {?} _
* @return {?}
*/
function (_) {};
/**
* \@description
* The registered callback function called when a blur event occurs on the input element.
*/
this.onTouched =
/**
* @return {?}
*/
function () {};
this._compareWith = _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵlooseIdentical */
"yb"];
}
/**
* \@description
* Tracks the option comparison algorithm for tracking identities when
* checking for changes.
* @param {?} fn
* @return {?}
*/
return _createClass2(SelectMultipleControlValueAccessor, [{
key: "compareWith",
set: function set(fn) {
if (typeof fn !== 'function') {
throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(fn)));
}
this._compareWith = fn;
}
/**
* \@description
* Sets the "value" property on one or of more
* of the select's options.
*
* @param {?} value The value
* @return {?}
*/
}, {
key: "writeValue",
value: function writeValue(value) {
var _this9 = this;
this.value = value;
/** @type {?} */
var optionSelectedStateSetter;
if (Array.isArray(value)) {
// convert values to ids
/** @type {?} */
var ids = value.map(
/**
* @param {?} v
* @return {?}
*/
function (v) {
return _this9._getOptionId(v);
});
optionSelectedStateSetter =
/**
* @param {?} opt
* @param {?} o
* @return {?}
*/
function optionSelectedStateSetter(opt, o) {
opt._setSelected(ids.indexOf(o.toString()) > -1);
};
} else {
optionSelectedStateSetter =
/**
* @param {?} opt
* @param {?} o
* @return {?}
*/
function optionSelectedStateSetter(opt, o) {
opt._setSelected(false);
};
}
this._optionMap.forEach(optionSelectedStateSetter);
}
/**
* \@description
* Registers a function called when the control value changes
* and writes an array of the selected options.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
var _this0 = this;
this.onChange =
/**
* @param {?} _
* @return {?}
*/
function (_) {
/** @type {?} */
var selected = [];
if (_.hasOwnProperty('selectedOptions')) {
/** @type {?} */
var options = _.selectedOptions;
for (var i = 0; i < options.length; i++) {
/** @type {?} */
var opt = options.item(i);
/** @type {?} */
var val = _this0._getOptionValue(opt.value);
selected.push(val);
}
} // Degrade on IE
else {
/** @type {?} */
var _options2 =
/** @type {?} */
_.options;
for (var _i3 = 0; _i3 < _options2.length; _i3++) {
/** @type {?} */
var _opt = _options2.item(_i3);
if (_opt.selected) {
/** @type {?} */
var _val2 = _this0._getOptionValue(_opt.value);
selected.push(_val2);
}
}
}
_this0.value = selected;
fn(selected);
};
}
/**
* \@description
* Registers a function called when the control is touched.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnTouched",
value: function registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Sets the "disabled" property on the select input element.
*
* @param {?} isDisabled The disabled value
* @return {?}
*/
}, {
key: "setDisabledState",
value: function setDisabledState(isDisabled) {
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_registerOption",
value: function _registerOption(value) {
/** @type {?} */
var id = (this._idCounter++).toString();
this._optionMap.set(id, value);
return id;
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_getOptionId",
value: function _getOptionId(value) {
for (var _i4 = 0, _Array$from2 = Array.from(this._optionMap.keys()); _i4 < _Array$from2.length; _i4++) {
var id = _Array$from2[_i4];
if (this._compareWith(
/** @type {?} */
this._optionMap.get(id)._value, value)) return id;
}
return null;
}
/**
* \@internal
* @param {?} valueString
* @return {?}
*/
}, {
key: "_getOptionValue",
value: function _getOptionValue(valueString) {
/** @type {?} */
var id = _extractId$1(valueString);
return this._optionMap.has(id) ?
/** @type {?} */
this._optionMap.get(id)._value : valueString;
}
}]);
}();
SelectMultipleControlValueAccessor.ɵfac = function SelectMultipleControlValueAccessor_Factory(t) {
return new (t || SelectMultipleControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]));
};
SelectMultipleControlValueAccessor.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: SelectMultipleControlValueAccessor,
selectors: [["select", "multiple", "", "formControlName", ""], ["select", "multiple", "", "formControl", ""], ["select", "multiple", "", "ngModel", ""]],
hostBindings: function SelectMultipleControlValueAccessor_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("change", function SelectMultipleControlValueAccessor_change_HostBindingHandler($event) {
return ctx.onChange($event.target);
})("blur", function SelectMultipleControlValueAccessor_blur_HostBindingHandler() {
return ctx.onTouched();
});
}
},
inputs: {
compareWith: "compareWith"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([SELECT_MULTIPLE_VALUE_ACCESSOR])]
});
return SelectMultipleControlValueAccessor;
}();
if (false) {}
var ɵNgSelectMultipleOption =
/*@__PURE__*/
function () {
var ɵNgSelectMultipleOption =
/*#__PURE__*/
function () {
/**
* @param {?} _element
* @param {?} _renderer
* @param {?} _select
*/
function ɵNgSelectMultipleOption(_element, _renderer, _select) {
_classCallCheck(this, ɵNgSelectMultipleOption);
this._element = _element;
this._renderer = _renderer;
this._select = _select;
if (this._select) {
this.id = this._select._registerOption(this);
}
}
/**
* \@description
* Tracks the value bound to the option element. Unlike the value binding,
* ngValue supports binding to objects.
* @param {?} value
* @return {?}
*/
return _createClass2(ɵNgSelectMultipleOption, [{
key: "ngValue",
set: function set(value) {
if (this._select == null) return;
this._value = value;
this._setElementValue(_buildValueString$1(this.id, value));
this._select.writeValue(this._select.value);
}
/**
* \@description
* Tracks simple string values bound to the option element.
* For objects, use the `ngValue` input binding.
* @param {?} value
* @return {?}
*/
}, {
key: "value",
set: function set(value) {
if (this._select) {
this._value = value;
this._setElementValue(_buildValueString$1(this.id, value));
this._select.writeValue(this._select.value);
} else {
this._setElementValue(value);
}
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_setElementValue",
value: function _setElementValue(value) {
this._renderer.setProperty(this._element.nativeElement, 'value', value);
}
/**
* \@internal
* @param {?} selected
* @return {?}
*/
}, {
key: "_setSelected",
value: function _setSelected(selected) {
this._renderer.setProperty(this._element.nativeElement, 'selected', selected);
}
/**
* \@description
* Lifecycle method called before the directive's instance is destroyed. For internal use only.
* @return {?}
*/
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
if (this._select) {
this._select._optionMap["delete"](this.id);
this._select.writeValue(this._select.value);
}
}
}]);
}();
ɵNgSelectMultipleOption.ɵfac = function ɵNgSelectMultipleOption_Factory(t) {
return new (t || ɵNgSelectMultipleOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ElementRef */
"o"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](SelectMultipleControlValueAccessor, 9));
};
ɵNgSelectMultipleOption.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: ɵNgSelectMultipleOption,
selectors: [["option"]],
inputs: {
ngValue: "ngValue",
value: "value"
}
});
return ɵNgSelectMultipleOption;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/shared.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} name
* @param {?} parent
* @return {?}
*/
function controlPath(name, parent) {
return [].concat(_toConsumableArray(
/** @type {?} */
parent.path), [
/** @type {?} */
name]);
}
/**
* @param {?} control
* @param {?} dir
* @return {?}
*/
function setUpControl(control, dir) {
if (!control) _throwError(dir, 'Cannot find control with');
if (!dir.valueAccessor) _throwError(dir, 'No value accessor for form control with');
control.validator = Validators.compose([
/** @type {?} */
control.validator, dir.validator]);
control.asyncValidator = Validators.composeAsync([
/** @type {?} */
control.asyncValidator, dir.asyncValidator]);
/** @type {?} */
dir.valueAccessor.writeValue(control.value);
setUpViewChangePipeline(control, dir);
setUpModelChangePipeline(control, dir);
setUpBlurPipeline(control, dir);
if (
/** @type {?} */
dir.valueAccessor.setDisabledState) {
control.registerOnDisabledChange(
/**
* @param {?} isDisabled
* @return {?}
*/
function (isDisabled) {
/** @type {?} */
/** @type {?} */
dir.valueAccessor.setDisabledState(isDisabled);
});
} // re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4
dir._rawValidators.forEach(
/**
* @param {?} validator
* @return {?}
*/
function (validator) {
if (
/** @type {?} */
validator.registerOnValidatorChange)
/** @type {?} */
/** @type {?} */
validator.registerOnValidatorChange(
/**
* @return {?}
*/
function () {
return control.updateValueAndValidity();
});
});
dir._rawAsyncValidators.forEach(
/**
* @param {?} validator
* @return {?}
*/
function (validator) {
if (
/** @type {?} */
validator.registerOnValidatorChange)
/** @type {?} */
/** @type {?} */
validator.registerOnValidatorChange(
/**
* @return {?}
*/
function () {
return control.updateValueAndValidity();
});
});
}
/**
* @param {?} control
* @param {?} dir
* @return {?}
*/
function cleanUpControl(control, dir) {
/** @type {?} */
dir.valueAccessor.registerOnChange(
/**
* @return {?}
*/
function () {
return _noControlError(dir);
});
/** @type {?} */
dir.valueAccessor.registerOnTouched(
/**
* @return {?}
*/
function () {
return _noControlError(dir);
});
dir._rawValidators.forEach(
/**
* @param {?} validator
* @return {?}
*/
function (validator) {
if (validator.registerOnValidatorChange) {
validator.registerOnValidatorChange(null);
}
});
dir._rawAsyncValidators.forEach(
/**
* @param {?} validator
* @return {?}
*/
function (validator) {
if (validator.registerOnValidatorChange) {
validator.registerOnValidatorChange(null);
}
});
if (control) control._clearChangeFns();
}
/**
* @param {?} control
* @param {?} dir
* @return {?}
*/
function setUpViewChangePipeline(control, dir) {
/** @type {?} */
dir.valueAccessor.registerOnChange(
/**
* @param {?} newValue
* @return {?}
*/
function (newValue) {
control._pendingValue = newValue;
control._pendingChange = true;
control._pendingDirty = true;
if (control.updateOn === 'change') updateControl(control, dir);
});
}
/**
* @param {?} control
* @param {?} dir
* @return {?}
*/
function setUpBlurPipeline(control, dir) {
/** @type {?} */
dir.valueAccessor.registerOnTouched(
/**
* @return {?}
*/
function () {
control._pendingTouched = true;
if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir);
if (control.updateOn !== 'submit') control.markAsTouched();
});
}
/**
* @param {?} control
* @param {?} dir
* @return {?}
*/
function updateControl(control, dir) {
if (control._pendingDirty) control.markAsDirty();
control.setValue(control._pendingValue, {
emitModelToViewChange: false
});
dir.viewToModelUpdate(control._pendingValue);
control._pendingChange = false;
}
/**
* @param {?} control
* @param {?} dir
* @return {?}
*/
function setUpModelChangePipeline(control, dir) {
control.registerOnChange(
/**
* @param {?} newValue
* @param {?} emitModelEvent
* @return {?}
*/
function (newValue, emitModelEvent) {
// control -> view
/** @type {?} */
dir.valueAccessor.writeValue(newValue); // control -> ngModel
if (emitModelEvent) dir.viewToModelUpdate(newValue);
});
}
/**
* @param {?} control
* @param {?} dir
* @return {?}
*/
function setUpFormContainer(control, dir) {
if (control == null) _throwError(dir, 'Cannot find control with');
control.validator = Validators.compose([control.validator, dir.validator]);
control.asyncValidator = Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);
}
/**
* @param {?} dir
* @return {?}
*/
function _noControlError(dir) {
return _throwError(dir, 'There is no FormControl instance attached to form control element with');
}
/**
* @param {?} dir
* @param {?} message
* @return {?}
*/
function _throwError(dir, message) {
/** @type {?} */
var messageEnd;
if (
/** @type {?} */
dir.path.length > 1) {
messageEnd = "path: '".concat(
/** @type {?} */
dir.path.join(' -> '), "'");
} else if (
/** @type {?} */
dir.path[0]) {
messageEnd = "name: '".concat(dir.path, "'");
} else {
messageEnd = 'unspecified name attribute';
}
throw new Error("".concat(message, " ").concat(messageEnd));
}
/**
* @param {?} validators
* @return {?}
*/
function composeValidators(validators) {
return validators != null ? Validators.compose(validators.map(normalizeValidator)) : null;
}
/**
* @param {?} validators
* @return {?}
*/
function composeAsyncValidators(validators) {
return validators != null ? Validators.composeAsync(validators.map(normalizeAsyncValidator)) : null;
}
/**
* @param {?} changes
* @param {?} viewModel
* @return {?}
*/
function isPropertyUpdated(changes, viewModel) {
if (!changes.hasOwnProperty('model')) return false;
/** @type {?} */
var change = changes['model'];
if (change.isFirstChange()) return true;
return !Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵlooseIdentical */
"yb"])(viewModel, change.currentValue);
}
/** @type {?} */
var BUILTIN_ACCESSORS = [CheckboxControlValueAccessor, RangeValueAccessor, NumberValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor];
/**
* @param {?} valueAccessor
* @return {?}
*/
function isBuiltInAccessor(valueAccessor) {
return BUILTIN_ACCESSORS.some(
/**
* @param {?} a
* @return {?}
*/
/**
* @param {?} a
* @return {?}
*/
function (a) {
return valueAccessor.constructor === a;
});
}
/**
* @param {?} form
* @param {?} directives
* @return {?}
*/
function syncPendingControls(form, directives) {
form._syncPendingControls();
directives.forEach(
/**
* @param {?} dir
* @return {?}
*/
/**
* @param {?} dir
* @return {?}
*/
function (dir) {
/** @type {?} */
var control =
/** @type {?} */
dir.control;
if (control.updateOn === 'submit' && control._pendingChange) {
dir.viewToModelUpdate(control._pendingValue);
control._pendingChange = false;
}
});
} // TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented
/**
* @param {?} dir
* @param {?} valueAccessors
* @return {?}
*/
function selectValueAccessor(dir, valueAccessors) {
if (!valueAccessors) return null;
if (!Array.isArray(valueAccessors)) _throwError(dir, 'Value accessor was not provided as an array for form control with');
/** @type {?} */
var defaultAccessor = undefined;
/** @type {?} */
var builtinAccessor = undefined;
/** @type {?} */
var customAccessor = undefined;
valueAccessors.forEach(
/**
* @param {?} v
* @return {?}
*/
function (v) {
if (v.constructor === DefaultValueAccessor) {
defaultAccessor = v;
} else if (isBuiltInAccessor(v)) {
if (builtinAccessor) _throwError(dir, 'More than one built-in value accessor matches form control with');
builtinAccessor = v;
} else {
if (customAccessor) _throwError(dir, 'More than one custom value accessor matches form control with');
customAccessor = v;
}
});
if (customAccessor) return customAccessor;
if (builtinAccessor) return builtinAccessor;
if (defaultAccessor) return defaultAccessor;
_throwError(dir, 'No valid value accessor for form control with');
return null;
}
/**
* @template T
* @param {?} list
* @param {?} el
* @return {?}
*/
function removeDir(list, el) {
/** @type {?} */
var index = list.indexOf(el);
if (index > -1) list.splice(index, 1);
} // TODO(kara): remove after deprecation period
/**
* @param {?} name
* @param {?} type
* @param {?} instance
* @param {?} warningConfig
* @return {?}
*/
function _ngModelWarning(name, type, instance, warningConfig) {
if (!Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* isDevMode */
"ab"])() || warningConfig === 'never') return;
if ((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce || warningConfig === 'always' && !instance._ngModelWarningSent) {
ReactiveErrors.ngModelWarning(name);
type._ngModelWarningSentOnce = true;
instance._ngModelWarningSent = true;
}
}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/model.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Reports that a FormControl is valid, meaning that no errors exist in the input value.
*
* @see `status`
* @type {?}
*/
var VALID = 'VALID';
/**
* Reports that a FormControl is invalid, meaning that an error exists in the input value.
*
* @see `status`
* @type {?}
*/
var INVALID = 'INVALID';
/**
* Reports that a FormControl is pending, meaning that that async validation is occurring and
* errors are not yet available for the input value.
*
* @see `markAsPending`
* @see `status`
* @type {?}
*/
var PENDING = 'PENDING';
/**
* Reports that a FormControl is disabled, meaning that the control is exempt from ancestor
* calculations of validity or value.
*
* @see `markAsDisabled`
* @see `status`
* @type {?}
*/
var DISABLED = 'DISABLED';
/**
* @param {?} control
* @param {?} path
* @param {?} delimiter
* @return {?}
*/
function _find(control, path, delimiter) {
if (path == null) return null;
if (!Array.isArray(path)) {
path = path.split(delimiter);
}
if (Array.isArray(path) && path.length === 0) return null; // Not using Array.reduce here due to a Chrome 80 bug
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
/** @type {?} */
var controlToFind = control;
path.forEach(
/**
* @param {?} name
* @return {?}
*/
function (name) {
if (controlToFind instanceof FormGroup) {
controlToFind = controlToFind.controls.hasOwnProperty(
/** @type {?} */
name) ? controlToFind.controls[name] : null;
} else if (controlToFind instanceof FormArray) {
controlToFind = controlToFind.at(
/** @type {?} */
name) || null;
} else {
controlToFind = null;
}
});
return controlToFind;
}
/**
* @param {?=} validatorOrOpts
* @return {?}
*/
function coerceToValidator(validatorOrOpts) {
/** @type {?} */
var validator =
/** @type {?} */
isOptionsObj(validatorOrOpts) ?
/** @type {?} */
validatorOrOpts.validators : validatorOrOpts;
return Array.isArray(validator) ? composeValidators(validator) : validator || null;
}
/**
* @param {?=} asyncValidator
* @param {?=} validatorOrOpts
* @return {?}
*/
function coerceToAsyncValidator(asyncValidator, validatorOrOpts) {
/** @type {?} */
var origAsyncValidator =
/** @type {?} */
isOptionsObj(validatorOrOpts) ?
/** @type {?} */
validatorOrOpts.asyncValidators : asyncValidator;
return Array.isArray(origAsyncValidator) ? composeAsyncValidators(origAsyncValidator) : origAsyncValidator || null;
}
/**
* Interface for options provided to an `AbstractControl`.
*
* \@publicApi
* @record
*/
function AbstractControlOptions() {}
if (false) {}
/**
* @param {?=} validatorOrOpts
* @return {?}
*/
function isOptionsObj(validatorOrOpts) {
return validatorOrOpts != null && !Array.isArray(validatorOrOpts) && typeof validatorOrOpts === 'object';
}
/**
* This is the base class for `FormControl`, `FormGroup`, and `FormArray`.
*
* It provides some of the shared behavior that all controls and groups of controls have, like
* running validators, calculating status, and resetting state. It also defines the properties
* that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be
* instantiated directly.
*
* @see [Forms Guide](/guide/forms)
* @see [Reactive Forms Guide](/guide/reactive-forms)
* @see [Dynamic Forms Guide](/guide/dynamic-form)
*
* \@publicApi
* @abstract
*/
var AbstractControl =
/*#__PURE__*/
function () {
/**
* Initialize the AbstractControl instance.
*
* @param {?} validator The function that determines the synchronous validity of this control.
* @param {?} asyncValidator The function that determines the asynchronous validity of this
* control.
*/
function AbstractControl(validator, asyncValidator) {
_classCallCheck(this, AbstractControl);
this.validator = validator;
this.asyncValidator = asyncValidator;
/**
* \@internal
*/
this._onCollectionChange =
/**
* @return {?}
*/
function () {};
/**
* A control is `pristine` if the user has not yet changed
* the value in the UI.
*
* @return True if the user has not yet changed the value in the UI; compare `dirty`.
* Programmatic changes to a control's value do not mark it dirty.
*/
this.pristine = true;
/**
* True if the control is marked as `touched`.
*
* A control is marked `touched` once the user has triggered
* a `blur` event on it.
*/
this.touched = false;
/**
* \@internal
*/
this._onDisabledChange = [];
}
/**
* The parent control.
* @return {?}
*/
return _createClass2(AbstractControl, [{
key: "parent",
get: function get() {
return this._parent;
}
/**
* A control is `valid` when its `status` is `VALID`.
*
* @see {\@link AbstractControl.status}
*
* @return {?} True if the control has passed all of its validation tests,
* false otherwise.
*/
}, {
key: "valid",
get: function get() {
return this.status === VALID;
}
/**
* A control is `invalid` when its `status` is `INVALID`.
*
* @see {\@link AbstractControl.status}
*
* @return {?} True if this control has failed one or more of its validation checks,
* false otherwise.
*/
}, {
key: "invalid",
get: function get() {
return this.status === INVALID;
}
/**
* A control is `pending` when its `status` is `PENDING`.
*
* @see {\@link AbstractControl.status}
*
* @return {?} True if this control is in the process of conducting a validation check,
* false otherwise.
*/
}, {
key: "pending",
get: function get() {
return this.status == PENDING;
}
/**
* A control is `disabled` when its `status` is `DISABLED`.
*
* Disabled controls are exempt from validation checks and
* are not included in the aggregate value of their ancestor
* controls.
*
* @see {\@link AbstractControl.status}
*
* @return {?} True if the control is disabled, false otherwise.
*/
}, {
key: "disabled",
get: function get() {
return this.status === DISABLED;
}
/**
* A control is `enabled` as long as its `status` is not `DISABLED`.
*
* @see {\@link AbstractControl.status}
*
* @return {?} True if the control has any status other than 'DISABLED',
* false if the status is 'DISABLED'.
*
*/
}, {
key: "enabled",
get: function get() {
return this.status !== DISABLED;
}
/**
* A control is `dirty` if the user has changed the value
* in the UI.
*
* @return {?} True if the user has changed the value of this control in the UI; compare `pristine`.
* Programmatic changes to a control's value do not mark it dirty.
*/
}, {
key: "dirty",
get: function get() {
return !this.pristine;
}
/**
* True if the control has not been marked as touched
*
* A control is `untouched` if the user has not yet triggered
* a `blur` event on it.
* @return {?}
*/
}, {
key: "untouched",
get: function get() {
return !this.touched;
}
/**
* Reports the update strategy of the `AbstractControl` (meaning
* the event on which the control updates itself).
* Possible values: `'change'` | `'blur'` | `'submit'`
* Default value: `'change'`
* @return {?}
*/
}, {
key: "updateOn",
get: function get() {
return this._updateOn ? this._updateOn : this.parent ? this.parent.updateOn : 'change';
}
/**
* Sets the synchronous validators that are active on this control. Calling
* this overwrites any existing sync validators.
*
* When you add or remove a validator at run time, you must call
* `updateValueAndValidity()` for the new validation to take effect.
*
* @param {?} newValidator
* @return {?}
*/
}, {
key: "setValidators",
value: function setValidators(newValidator) {
this.validator = coerceToValidator(newValidator);
}
/**
* Sets the async validators that are active on this control. Calling this
* overwrites any existing async validators.
*
* When you add or remove a validator at run time, you must call
* `updateValueAndValidity()` for the new validation to take effect.
*
* @param {?} newValidator
* @return {?}
*/
}, {
key: "setAsyncValidators",
value: function setAsyncValidators(newValidator) {
this.asyncValidator = coerceToAsyncValidator(newValidator);
}
/**
* Empties out the sync validator list.
*
* When you add or remove a validator at run time, you must call
* `updateValueAndValidity()` for the new validation to take effect.
*
* @return {?}
*/
}, {
key: "clearValidators",
value: function clearValidators() {
this.validator = null;
}
/**
* Empties out the async validator list.
*
* When you add or remove a validator at run time, you must call
* `updateValueAndValidity()` for the new validation to take effect.
*
* @return {?}
*/
}, {
key: "clearAsyncValidators",
value: function clearAsyncValidators() {
this.asyncValidator = null;
}
/**
* Marks the control as `touched`. A control is touched by focus and
* blur events that do not change the value.
*
* @see `markAsUntouched()` / `markAsDirty()` / `markAsPristine()`
*
* @param {?=} opts Configuration options that determine how the control propagates changes
* and emits events after marking is applied.
* * `onlySelf`: When true, mark only this control. When false or not supplied,
* marks all direct ancestors. Default is false.
* @return {?}
*/
}, {
key: "markAsTouched",
value: function markAsTouched() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
/** @type {?} */
this.touched = true;
if (this._parent && !opts.onlySelf) {
this._parent.markAsTouched(opts);
}
}
/**
* Marks the control and all its descendant controls as `touched`.
* @see `markAsTouched()`
* @return {?}
*/
}, {
key: "markAllAsTouched",
value: function markAllAsTouched() {
this.markAsTouched({
onlySelf: true
});
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control.markAllAsTouched();
});
}
/**
* Marks the control as `untouched`.
*
* If the control has any children, also marks all children as `untouched`
* and recalculates the `touched` status of all parent controls.
*
* @see `markAsTouched()` / `markAsDirty()` / `markAsPristine()`
*
* @param {?=} opts Configuration options that determine how the control propagates changes
* and emits events after the marking is applied.
* * `onlySelf`: When true, mark only this control. When false or not supplied,
* marks all direct ancestors. Default is false.
* @return {?}
*/
}, {
key: "markAsUntouched",
value: function markAsUntouched() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
/** @type {?} */
this.touched = false;
this._pendingTouched = false;
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
control.markAsUntouched({
onlySelf: true
});
});
if (this._parent && !opts.onlySelf) {
this._parent._updateTouched(opts);
}
}
/**
* Marks the control as `dirty`. A control becomes dirty when
* the control's value is changed through the UI; compare `markAsTouched`.
*
* @see `markAsTouched()` / `markAsUntouched()` / `markAsPristine()`
*
* @param {?=} opts Configuration options that determine how the control propagates changes
* and emits events after marking is applied.
* * `onlySelf`: When true, mark only this control. When false or not supplied,
* marks all direct ancestors. Default is false.
* @return {?}
*/
}, {
key: "markAsDirty",
value: function markAsDirty() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
/** @type {?} */
this.pristine = false;
if (this._parent && !opts.onlySelf) {
this._parent.markAsDirty(opts);
}
}
/**
* Marks the control as `pristine`.
*
* If the control has any children, marks all children as `pristine`,
* and recalculates the `pristine` status of all parent
* controls.
*
* @see `markAsTouched()` / `markAsUntouched()` / `markAsDirty()`
*
* @param {?=} opts Configuration options that determine how the control emits events after
* marking is applied.
* * `onlySelf`: When true, mark only this control. When false or not supplied,
* marks all direct ancestors. Default is false..
* @return {?}
*/
}, {
key: "markAsPristine",
value: function markAsPristine() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
/** @type {?} */
this.pristine = true;
this._pendingDirty = false;
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
control.markAsPristine({
onlySelf: true
});
});
if (this._parent && !opts.onlySelf) {
this._parent._updatePristine(opts);
}
}
/**
* Marks the control as `pending`.
*
* A control is pending while the control performs async validation.
*
* @see {\@link AbstractControl.status}
*
* @param {?=} opts Configuration options that determine how the control propagates changes and
* emits events after marking is applied.
* * `onlySelf`: When true, mark only this control. When false or not supplied,
* marks all direct ancestors. Default is false..
* * `emitEvent`: When true or not supplied (the default), the `statusChanges`
* observable emits an event with the latest status the control is marked pending.
* When false, no events are emitted.
*
* @return {?}
*/
}, {
key: "markAsPending",
value: function markAsPending() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
/** @type {?} */
this.status = PENDING;
if (opts.emitEvent !== false) {
/** @type {?} */
this.statusChanges.emit(this.status);
}
if (this._parent && !opts.onlySelf) {
this._parent.markAsPending(opts);
}
}
/**
* Disables the control. This means the control is exempt from validation checks and
* excluded from the aggregate value of any parent. Its status is `DISABLED`.
*
* If the control has children, all children are also disabled.
*
* @see {\@link AbstractControl.status}
*
* @param {?=} opts Configuration options that determine how the control propagates
* changes and emits events after the control is disabled.
* * `onlySelf`: When true, mark only this control. When false or not supplied,
* marks all direct ancestors. Default is false..
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control is disabled.
* When false, no events are emitted.
* @return {?}
*/
}, {
key: "disable",
value: function disable() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
// If parent has been marked artificially dirty we don't want to re-calculate the
// parent's dirtiness based on the children.
/** @type {?} */
var skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
/** @type {?} */
this.status = DISABLED;
/** @type {?} */
this.errors = null;
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
control.disable(Object.assign(Object.assign({}, opts), {
onlySelf: true
}));
});
this._updateValue();
if (opts.emitEvent !== false) {
/** @type {?} */
this.valueChanges.emit(this.value);
/** @type {?} */
this.statusChanges.emit(this.status);
}
this._updateAncestors(Object.assign(Object.assign({}, opts), {
skipPristineCheck: skipPristineCheck
}));
this._onDisabledChange.forEach(
/**
* @param {?} changeFn
* @return {?}
*/
function (changeFn) {
return changeFn(true);
});
}
/**
* Enables the control. This means the control is included in validation checks and
* the aggregate value of its parent. Its status recalculates based on its value and
* its validators.
*
* By default, if the control has children, all children are enabled.
*
* @see {\@link AbstractControl.status}
*
* @param {?=} opts Configure options that control how the control propagates changes and
* emits events when marked as untouched
* * `onlySelf`: When true, mark only this control. When false or not supplied,
* marks all direct ancestors. Default is false..
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control is enabled.
* When false, no events are emitted.
* @return {?}
*/
}, {
key: "enable",
value: function enable() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
// If parent has been marked artificially dirty we don't want to re-calculate the
// parent's dirtiness based on the children.
/** @type {?} */
var skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
/** @type {?} */
this.status = VALID;
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
control.enable(Object.assign(Object.assign({}, opts), {
onlySelf: true
}));
});
this.updateValueAndValidity({
onlySelf: true,
emitEvent: opts.emitEvent
});
this._updateAncestors(Object.assign(Object.assign({}, opts), {
skipPristineCheck: skipPristineCheck
}));
this._onDisabledChange.forEach(
/**
* @param {?} changeFn
* @return {?}
*/
function (changeFn) {
return changeFn(false);
});
}
/**
* @private
* @param {?} opts
* @return {?}
*/
}, {
key: "_updateAncestors",
value: function _updateAncestors(opts) {
if (this._parent && !opts.onlySelf) {
this._parent.updateValueAndValidity(opts);
if (!opts.skipPristineCheck) {
this._parent._updatePristine();
}
this._parent._updateTouched();
}
}
/**
* @param {?} parent Sets the parent of the control
* @return {?}
*/
}, {
key: "setParent",
value: function setParent(parent) {
this._parent = parent;
}
/**
* Recalculates the value and validation status of the control.
*
* By default, it also updates the value and validity of its ancestors.
*
* @param {?=} opts Configuration options determine how the control propagates changes and emits events
* after updates and validity checks are applied.
* * `onlySelf`: When true, only update this control. When false or not supplied,
* update all direct ancestors. Default is false..
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control is updated.
* When false, no events are emitted.
* @return {?}
*/
}, {
key: "updateValueAndValidity",
value: function updateValueAndValidity() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
this._setInitialStatus();
this._updateValue();
if (this.enabled) {
this._cancelExistingSubscription();
/** @type {?} */
this.errors = this._runValidator();
/** @type {?} */
this.status = this._calculateStatus();
if (this.status === VALID || this.status === PENDING) {
this._runAsyncValidator(opts.emitEvent);
}
}
if (opts.emitEvent !== false) {
/** @type {?} */
this.valueChanges.emit(this.value);
/** @type {?} */
this.statusChanges.emit(this.status);
}
if (this._parent && !opts.onlySelf) {
this._parent.updateValueAndValidity(opts);
}
}
/**
* \@internal
* @param {?=} opts
* @return {?}
*/
}, {
key: "_updateTreeValidity",
value: function _updateTreeValidity() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
emitEvent: true
};
this._forEachChild(
/**
* @param {?} ctrl
* @return {?}
*/
function (ctrl) {
return ctrl._updateTreeValidity(opts);
});
this.updateValueAndValidity({
onlySelf: true,
emitEvent: opts.emitEvent
});
}
/**
* @private
* @return {?}
*/
}, {
key: "_setInitialStatus",
value: function _setInitialStatus() {
/** @type {?} */
this.status = this._allControlsDisabled() ? DISABLED : VALID;
}
/**
* @private
* @return {?}
*/
}, {
key: "_runValidator",
value: function _runValidator() {
return this.validator ? this.validator(this) : null;
}
/**
* @private
* @param {?=} emitEvent
* @return {?}
*/
}, {
key: "_runAsyncValidator",
value: function _runAsyncValidator(emitEvent) {
var _this1 = this;
if (this.asyncValidator) {
/** @type {?} */
this.status = PENDING;
/** @type {?} */
var obs = toObservable(this.asyncValidator(this));
this._asyncValidationSubscription = obs.subscribe(
/**
* @param {?} errors
* @return {?}
*/
function (errors) {
return _this1.setErrors(errors, {
emitEvent: emitEvent
});
});
}
}
/**
* @private
* @return {?}
*/
}, {
key: "_cancelExistingSubscription",
value: function _cancelExistingSubscription() {
if (this._asyncValidationSubscription) {
this._asyncValidationSubscription.unsubscribe();
}
}
/**
* Sets errors on a form control when running validations manually, rather than automatically.
*
* Calling `setErrors` also updates the validity of the parent control.
*
* \@usageNotes
* ### Manually set the errors for a control
*
* ```
* const login = new FormControl('someLogin');
* login.setErrors({
* notUnique: true
* });
*
* expect(login.valid).toEqual(false);
* expect(login.errors).toEqual({ notUnique: true });
*
* login.setValue('someOtherLogin');
*
* expect(login.valid).toEqual(true);
* ```
* @param {?} errors
* @param {?=} opts
* @return {?}
*/
}, {
key: "setErrors",
value: function setErrors(errors) {
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
/** @type {?} */
this.errors = errors;
this._updateControlsErrors(opts.emitEvent !== false);
}
/**
* Retrieves a child control given the control's name or path.
*
* \@usageNotes
* ### Retrieve a nested control
*
* For example, to get a `name` control nested within a `person` sub-group:
*
* * `this.form.get('person.name');`
*
* -OR-
*
* * `this.form.get(['person', 'name']);`
* @param {?} path A dot-delimited string or array of string/number values that define the path to the
* control.
*
* @return {?}
*/
}, {
key: "get",
value: function get(path) {
return _find(this, path, '.');
}
/**
* \@description
* Reports error data for the control with the given path.
*
* \@usageNotes
* For example, for the following `FormGroup`:
*
* ```
* form = new FormGroup({
* address: new FormGroup({ street: new FormControl() })
* });
* ```
*
* The path to the 'street' control from the root form would be 'address' -> 'street'.
*
* It can be provided to this method in one of two formats:
*
* 1. An array of string control names, e.g. `['address', 'street']`
* 1. A period-delimited list of control names in one string, e.g. `'address.street'`
*
* @param {?} errorCode The code of the error to check
* @param {?=} path A list of control names that designates how to move from the current control
* to the control that should be queried for errors.
*
* @return {?} error data for that particular error. If the control or error is not present,
* null is returned.
*/
}, {
key: "getError",
value: function getError(errorCode, path) {
/** @type {?} */
var control = path ? this.get(path) : this;
return control && control.errors ? control.errors[errorCode] : null;
}
/**
* \@description
* Reports whether the control with the given path has the error specified.
*
* \@usageNotes
* For example, for the following `FormGroup`:
*
* ```
* form = new FormGroup({
* address: new FormGroup({ street: new FormControl() })
* });
* ```
*
* The path to the 'street' control from the root form would be 'address' -> 'street'.
*
* It can be provided to this method in one of two formats:
*
* 1. An array of string control names, e.g. `['address', 'street']`
* 1. A period-delimited list of control names in one string, e.g. `'address.street'`
*
* If no path is given, this method checks for the error on the current control.
*
* @param {?} errorCode The code of the error to check
* @param {?=} path A list of control names that designates how to move from the current control
* to the control that should be queried for errors.
*
* @return {?} whether the given error is present in the control at the given path.
*
* If the control is not present, false is returned.
*/
}, {
key: "hasError",
value: function hasError(errorCode, path) {
return !!this.getError(errorCode, path);
}
/**
* Retrieves the top-level ancestor of this control.
* @return {?}
*/
}, {
key: "root",
get: function get() {
/** @type {?} */
var x = this;
while (x._parent) {
x = x._parent;
}
return x;
}
/**
* \@internal
* @param {?} emitEvent
* @return {?}
*/
}, {
key: "_updateControlsErrors",
value: function _updateControlsErrors(emitEvent) {
/** @type {?} */
this.status = this._calculateStatus();
if (emitEvent) {
/** @type {?} */
this.statusChanges.emit(this.status);
}
if (this._parent) {
this._parent._updateControlsErrors(emitEvent);
}
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_initObservables",
value: function _initObservables() {
/** @type {?} */
this.valueChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* EventEmitter */
"q"]();
/** @type {?} */
this.statusChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* EventEmitter */
"q"]();
}
/**
* @private
* @return {?}
*/
}, {
key: "_calculateStatus",
value: function _calculateStatus() {
if (this._allControlsDisabled()) return DISABLED;
if (this.errors) return INVALID;
if (this._anyControlsHaveStatus(PENDING)) return PENDING;
if (this._anyControlsHaveStatus(INVALID)) return INVALID;
return VALID;
}
/**
* \@internal
* @param {?} status
* @return {?}
*/
}, {
key: "_anyControlsHaveStatus",
value: function _anyControlsHaveStatus(status) {
return this._anyControls(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control.status === status;
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_anyControlsDirty",
value: function _anyControlsDirty() {
return this._anyControls(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control.dirty;
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_anyControlsTouched",
value: function _anyControlsTouched() {
return this._anyControls(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control.touched;
});
}
/**
* \@internal
* @param {?=} opts
* @return {?}
*/
}, {
key: "_updatePristine",
value: function _updatePristine() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
/** @type {?} */
this.pristine = !this._anyControlsDirty();
if (this._parent && !opts.onlySelf) {
this._parent._updatePristine(opts);
}
}
/**
* \@internal
* @param {?=} opts
* @return {?}
*/
}, {
key: "_updateTouched",
value: function _updateTouched() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
/** @type {?} */
this.touched = this._anyControlsTouched();
if (this._parent && !opts.onlySelf) {
this._parent._updateTouched(opts);
}
}
/**
* \@internal
* @param {?} formState
* @return {?}
*/
}, {
key: "_isBoxedValue",
value: function _isBoxedValue(formState) {
return typeof formState === 'object' && formState !== null && Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;
}
/**
* \@internal
* @param {?} fn
* @return {?}
*/
}, {
key: "_registerOnCollectionChange",
value: function _registerOnCollectionChange(fn) {
this._onCollectionChange = fn;
}
/**
* \@internal
* @param {?=} opts
* @return {?}
*/
}, {
key: "_setUpdateStrategy",
value: function _setUpdateStrategy(opts) {
if (isOptionsObj(opts) &&
/** @type {?} */
opts.updateOn != null) {
this._updateOn =
/** @type {?} */
/** @type {?} */
opts.updateOn;
}
}
/**
* Check to see if parent has been marked artificially dirty.
*
* \@internal
* @private
* @param {?=} onlySelf
* @return {?}
*/
}, {
key: "_parentMarkedDirty",
value: function _parentMarkedDirty(onlySelf) {
/** @type {?} */
var parentDirty = this._parent && this._parent.dirty;
return !onlySelf && parentDirty && !this._parent._anyControlsDirty();
}
}]);
}();
if (false) {}
/**
* Tracks the value and validation status of an individual form control.
*
* This is one of the three fundamental building blocks of Angular forms, along with
* `FormGroup` and `FormArray`. It extends the `AbstractControl` class that
* implements most of the base functionality for accessing the value, validation status,
* user interactions and events.
*
* @see `AbstractControl`
* @see [Reactive Forms Guide](guide/reactive-forms)
* @see [Usage Notes](#usage-notes)
*
* \@usageNotes
*
* ### Initializing Form Controls
*
* Instantiate a `FormControl`, with an initial value.
*
* ```ts
* const control = new FormControl('some value');
* console.log(control.value); // 'some value'
* ```
*
* The following example initializes the control with a form state object. The `value`
* and `disabled` keys are required in this case.
*
* ```ts
* const control = new FormControl({ value: 'n/a', disabled: true });
* console.log(control.value); // 'n/a'
* console.log(control.status); // 'DISABLED'
* ```
*
* The following example initializes the control with a sync validator.
*
* ```ts
* const control = new FormControl('', Validators.required);
* console.log(control.value); // ''
* console.log(control.status); // 'INVALID'
* ```
*
* The following example initializes the control using an options object.
*
* ```ts
* const control = new FormControl('', {
* validators: Validators.required,
* asyncValidators: myAsyncValidator
* });
* ```
*
* ### Configure the control to update on a blur event
*
* Set the `updateOn` option to `'blur'` to update on the blur `event`.
*
* ```ts
* const control = new FormControl('', { updateOn: 'blur' });
* ```
*
* ### Configure the control to update on a submit event
*
* Set the `updateOn` option to `'submit'` to update on a submit `event`.
*
* ```ts
* const control = new FormControl('', { updateOn: 'submit' });
* ```
*
* ### Reset the control back to an initial value
*
* You reset to a specific form state by passing through a standalone
* value or a form state object that contains both a value and a disabled state
* (these are the only two properties that cannot be calculated).
*
* ```ts
* const control = new FormControl('Nancy');
*
* console.log(control.value); // 'Nancy'
*
* control.reset('Drew');
*
* console.log(control.value); // 'Drew'
* ```
*
* ### Reset the control back to an initial value and disabled
*
* ```
* const control = new FormControl('Nancy');
*
* console.log(control.value); // 'Nancy'
* console.log(control.status); // 'VALID'
*
* control.reset({ value: 'Drew', disabled: true });
*
* console.log(control.value); // 'Drew'
* console.log(control.status); // 'DISABLED'
* ```
*
* \@publicApi
*/
var FormControl =
/*#__PURE__*/
function (_AbstractControl) {
/**
* Creates a new `FormControl` instance.
*
* @param {?=} formState Initializes the control with an initial value,
* or an object that defines the initial value and disabled state.
*
* @param {?=} validatorOrOpts A synchronous validator function, or an array of
* such functions, or an `AbstractControlOptions` object that contains validation functions
* and a validation trigger.
*
* @param {?=} asyncValidator A single async validator or array of async validator functions
*
*/
function FormControl() {
var _this10;
var formState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var validatorOrOpts = arguments.length > 1 ? arguments[1] : undefined;
var asyncValidator = arguments.length > 2 ? arguments[2] : undefined;
_classCallCheck(this, FormControl);
_this10 = _callSuper(this, FormControl, [coerceToValidator(validatorOrOpts), coerceToAsyncValidator(asyncValidator, validatorOrOpts)]);
/**
* \@internal
*/
_this10._onChange = [];
_this10._applyFormState(formState);
_this10._setUpdateStrategy(validatorOrOpts);
_this10.updateValueAndValidity({
onlySelf: true,
emitEvent: false
});
_this10._initObservables();
return _this10;
}
/**
* Sets a new value for the form control.
*
* @param {?} value The new value for the control.
* @param {?=} options Configuration options that determine how the control propagates changes
* and emits events when the value changes.
* The configuration options are passed to the {\@link AbstractControl#updateValueAndValidity
* updateValueAndValidity} method.
*
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
* false.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control value is updated.
* When false, no events are emitted.
* * `emitModelToViewChange`: When true or not supplied (the default), each change triggers an
* `onChange` event to
* update the view.
* * `emitViewToModelChange`: When true or not supplied (the default), each change triggers an
* `ngModelChange`
* event to update the model.
*
* @return {?}
*/
_inherits(FormControl, _AbstractControl);
return _createClass2(FormControl, [{
key: "setValue",
value: function setValue(value) {
var _this11 = this;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
/** @type {?} */
this.value = this._pendingValue = value;
if (this._onChange.length && options.emitModelToViewChange !== false) {
this._onChange.forEach(
/**
* @param {?} changeFn
* @return {?}
*/
function (changeFn) {
return changeFn(_this11.value, options.emitViewToModelChange !== false);
});
}
this.updateValueAndValidity(options);
}
/**
* Patches the value of a control.
*
* This function is functionally the same as {\@link FormControl#setValue setValue} at this level.
* It exists for symmetry with {\@link FormGroup#patchValue patchValue} on `FormGroups` and
* `FormArrays`, where it does behave differently.
*
* @see `setValue` for options
* @param {?} value
* @param {?=} options
* @return {?}
*/
}, {
key: "patchValue",
value: function patchValue(value) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this.setValue(value, options);
}
/**
* Resets the form control, marking it `pristine` and `untouched`, and setting
* the value to null.
*
* @param {?=} formState Resets the control with an initial value,
* or an object that defines the initial value and disabled state.
*
* @param {?=} options Configuration options that determine how the control propagates changes
* and emits events after the value changes.
*
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
* false.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control is reset.
* When false, no events are emitted.
*
* @return {?}
*/
}, {
key: "reset",
value: function reset() {
var formState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this._applyFormState(formState);
this.markAsPristine(options);
this.markAsUntouched(options);
this.setValue(this.value, options);
this._pendingChange = false;
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_updateValue",
value: function _updateValue() {}
/**
* \@internal
* @param {?} condition
* @return {?}
*/
}, {
key: "_anyControls",
value: function _anyControls(condition) {
return false;
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_allControlsDisabled",
value: function _allControlsDisabled() {
return this.disabled;
}
/**
* Register a listener for change events.
*
* @param {?} fn The method that is called when the value changes
* @return {?}
*/
}, {
key: "registerOnChange",
value: function registerOnChange(fn) {
this._onChange.push(fn);
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_clearChangeFns",
value: function _clearChangeFns() {
this._onChange = [];
this._onDisabledChange = [];
this._onCollectionChange =
/**
* @return {?}
*/
function () {};
}
/**
* Register a listener for disabled events.
*
* @param {?} fn The method that is called when the disabled status changes.
* @return {?}
*/
}, {
key: "registerOnDisabledChange",
value: function registerOnDisabledChange(fn) {
this._onDisabledChange.push(fn);
}
/**
* \@internal
* @param {?} cb
* @return {?}
*/
}, {
key: "_forEachChild",
value: function _forEachChild(cb) {}
/**
* \@internal
* @return {?}
*/
}, {
key: "_syncPendingControls",
value: function _syncPendingControls() {
if (this.updateOn === 'submit') {
if (this._pendingDirty) this.markAsDirty();
if (this._pendingTouched) this.markAsTouched();
if (this._pendingChange) {
this.setValue(this._pendingValue, {
onlySelf: true,
emitModelToViewChange: false
});
return true;
}
}
return false;
}
/**
* @private
* @param {?} formState
* @return {?}
*/
}, {
key: "_applyFormState",
value: function _applyFormState(formState) {
if (this._isBoxedValue(formState)) {
/** @type {?} */
this.value = this._pendingValue = formState.value;
formState.disabled ? this.disable({
onlySelf: true,
emitEvent: false
}) : this.enable({
onlySelf: true,
emitEvent: false
});
} else {
/** @type {?} */
this.value = this._pendingValue = formState;
}
}
}]);
}(AbstractControl);
if (false) {}
/**
* Tracks the value and validity state of a group of `FormControl` instances.
*
* A `FormGroup` aggregates the values of each child `FormControl` into one object,
* with each control name as the key. It calculates its status by reducing the status values
* of its children. For example, if one of the controls in a group is invalid, the entire
* group becomes invalid.
*
* `FormGroup` is one of the three fundamental building blocks used to define forms in Angular,
* along with `FormControl` and `FormArray`.
*
* When instantiating a `FormGroup`, pass in a collection of child controls as the first
* argument. The key for each child registers the name for the control.
*
* \@usageNotes
*
* ### Create a form group with 2 controls
*
* ```
* const form = new FormGroup({
* first: new FormControl('Nancy', Validators.minLength(2)),
* last: new FormControl('Drew'),
* });
*
* console.log(form.value); // {first: 'Nancy', last; 'Drew'}
* console.log(form.status); // 'VALID'
* ```
*
* ### Create a form group with a group-level validator
*
* You include group-level validators as the second arg, or group-level async
* validators as the third arg. These come in handy when you want to perform validation
* that considers the value of more than one child control.
*
* ```
* const form = new FormGroup({
* password: new FormControl('', Validators.minLength(2)),
* passwordConfirm: new FormControl('', Validators.minLength(2)),
* }, passwordMatchValidator);
*
*
* function passwordMatchValidator(g: FormGroup) {
* return g.get('password').value === g.get('passwordConfirm').value
* ? null : {'mismatch': true};
* }
* ```
*
* Like `FormControl` instances, you choose to pass in
* validators and async validators as part of an options object.
*
* ```
* const form = new FormGroup({
* password: new FormControl('')
* passwordConfirm: new FormControl('')
* }, { validators: passwordMatchValidator, asyncValidators: otherValidator });
* ```
*
* ### Set the updateOn property for all controls in a form group
*
* The options object is used to set a default value for each child
* control's `updateOn` property. If you set `updateOn` to `'blur'` at the
* group level, all child controls default to 'blur', unless the child
* has explicitly specified a different `updateOn` value.
*
* ```ts
* const c = new FormGroup({
* one: new FormControl()
* }, { updateOn: 'blur' });
* ```
*
* \@publicApi
*/
var FormGroup =
/*#__PURE__*/
function (_AbstractControl2) {
/**
* Creates a new `FormGroup` instance.
*
* @param {?} controls A collection of child controls. The key for each child is the name
* under which it is registered.
*
* @param {?=} validatorOrOpts A synchronous validator function, or an array of
* such functions, or an `AbstractControlOptions` object that contains validation functions
* and a validation trigger.
*
* @param {?=} asyncValidator A single async validator or array of async validator functions
*
*/
function FormGroup(controls, validatorOrOpts, asyncValidator) {
var _this12;
_classCallCheck(this, FormGroup);
_this12 = _callSuper(this, FormGroup, [coerceToValidator(validatorOrOpts), coerceToAsyncValidator(asyncValidator, validatorOrOpts)]);
_this12.controls = controls;
_this12._initObservables();
_this12._setUpdateStrategy(validatorOrOpts);
_this12._setUpControls();
_this12.updateValueAndValidity({
onlySelf: true,
emitEvent: false
});
return _this12;
}
/**
* Registers a control with the group's list of controls.
*
* This method does not update the value or validity of the control.
* Use {\@link FormGroup#addControl addControl} instead.
*
* @param {?} name The control name to register in the collection
* @param {?} control Provides the control for the given name
* @return {?}
*/
_inherits(FormGroup, _AbstractControl2);
return _createClass2(FormGroup, [{
key: "registerControl",
value: function registerControl(name, control) {
if (this.controls[name]) return this.controls[name];
this.controls[name] = control;
control.setParent(this);
control._registerOnCollectionChange(this._onCollectionChange);
return control;
}
/**
* Add a control to this group.
*
* This method also updates the value and validity of the control.
*
* @param {?} name The control name to add to the collection
* @param {?} control Provides the control for the given name
* @return {?}
*/
}, {
key: "addControl",
value: function addControl(name, control) {
this.registerControl(name, control);
this.updateValueAndValidity();
this._onCollectionChange();
}
/**
* Remove a control from this group.
*
* @param {?} name The control name to remove from the collection
* @return {?}
*/
}, {
key: "removeControl",
value: function removeControl(name) {
if (this.controls[name]) this.controls[name]._registerOnCollectionChange(
/**
* @return {?}
*/
function () {});
delete this.controls[name];
this.updateValueAndValidity();
this._onCollectionChange();
}
/**
* Replace an existing control.
*
* @param {?} name The control name to replace in the collection
* @param {?} control Provides the control for the given name
* @return {?}
*/
}, {
key: "setControl",
value: function setControl(name, control) {
if (this.controls[name]) this.controls[name]._registerOnCollectionChange(
/**
* @return {?}
*/
function () {});
delete this.controls[name];
if (control) this.registerControl(name, control);
this.updateValueAndValidity();
this._onCollectionChange();
}
/**
* Check whether there is an enabled control with the given name in the group.
*
* Reports false for disabled controls. If you'd like to check for existence in the group
* only, use {\@link AbstractControl#get get} instead.
*
* @param {?} controlName The control name to check for existence in the collection
*
* @return {?} false for disabled controls, true otherwise.
*/
}, {
key: "contains",
value: function contains(controlName) {
return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;
}
/**
* Sets the value of the `FormGroup`. It accepts an object that matches
* the structure of the group, with control names as keys.
*
* \@usageNotes
* ### Set the complete value for the form group
*
* ```
* const form = new FormGroup({
* first: new FormControl(),
* last: new FormControl()
* });
*
* console.log(form.value); // {first: null, last: null}
*
* form.setValue({first: 'Nancy', last: 'Drew'});
* console.log(form.value); // {first: 'Nancy', last: 'Drew'}
* ```
*
* @throws When strict checks fail, such as setting the value of a control
* that doesn't exist or if you exclude a value of a control that does exist.
*
* @param {?} value The new value for the control that matches the structure of the group.
* @param {?=} options Configuration options that determine how the control propagates changes
* and emits events after the value changes.
* The configuration options are passed to the {\@link AbstractControl#updateValueAndValidity
* updateValueAndValidity} method.
*
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
* false.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control value is updated.
* When false, no events are emitted.
* @return {?}
*/
}, {
key: "setValue",
value: function setValue(value) {
var _this13 = this;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this._checkAllValuesPresent(value);
Object.keys(value).forEach(
/**
* @param {?} name
* @return {?}
*/
/**
* @param {?} name
* @return {?}
*/
function (name) {
_this13._throwIfControlMissing(name);
_this13.controls[name].setValue(value[name], {
onlySelf: true,
emitEvent: options.emitEvent
});
});
this.updateValueAndValidity(options);
}
/**
* Patches the value of the `FormGroup`. It accepts an object with control
* names as keys, and does its best to match the values to the correct controls
* in the group.
*
* It accepts both super-sets and sub-sets of the group without throwing an error.
*
* \@usageNotes
* ### Patch the value for a form group
*
* ```
* const form = new FormGroup({
* first: new FormControl(),
* last: new FormControl()
* });
* console.log(form.value); // {first: null, last: null}
*
* form.patchValue({first: 'Nancy'});
* console.log(form.value); // {first: 'Nancy', last: null}
* ```
*
* @param {?} value The object that matches the structure of the group.
* @param {?=} options Configuration options that determine how the control propagates changes and
* emits events after the value is patched.
* * `onlySelf`: When true, each change only affects this control and not its parent. Default is
* true.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control value is updated.
* When false, no events are emitted.
* The configuration options are passed to the {\@link AbstractControl#updateValueAndValidity
* updateValueAndValidity} method.
* @return {?}
*/
}, {
key: "patchValue",
value: function patchValue(value) {
var _this14 = this;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
Object.keys(value).forEach(
/**
* @param {?} name
* @return {?}
*/
/**
* @param {?} name
* @return {?}
*/
function (name) {
if (_this14.controls[name]) {
_this14.controls[name].patchValue(value[name], {
onlySelf: true,
emitEvent: options.emitEvent
});
}
});
this.updateValueAndValidity(options);
}
/**
* Resets the `FormGroup`, marks all descendants are marked `pristine` and `untouched`, and
* the value of all descendants to null.
*
* You reset to a specific form state by passing in a map of states
* that matches the structure of your form, with control names as keys. The state
* is a standalone value or a form state object with both a value and a disabled
* status.
*
* \@usageNotes
*
* ### Reset the form group values
*
* ```ts
* const form = new FormGroup({
* first: new FormControl('first name'),
* last: new FormControl('last name')
* });
*
* console.log(form.value); // {first: 'first name', last: 'last name'}
*
* form.reset({ first: 'name', last: 'last name' });
*
* console.log(form.value); // {first: 'name', last: 'last name'}
* ```
*
* ### Reset the form group values and disabled status
*
* ```
* const form = new FormGroup({
* first: new FormControl('first name'),
* last: new FormControl('last name')
* });
*
* form.reset({
* first: {value: 'name', disabled: true},
* last: 'last'
* });
*
* console.log(this.form.value); // {first: 'name', last: 'last name'}
* console.log(this.form.get('first').status); // 'DISABLED'
* ```
* @param {?=} value Resets the control with an initial value,
* or an object that defines the initial value and disabled state.
*
* @param {?=} options Configuration options that determine how the control propagates changes
* and emits events when the group is reset.
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
* false.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control is reset.
* When false, no events are emitted.
* The configuration options are passed to the {\@link AbstractControl#updateValueAndValidity
* updateValueAndValidity} method.
*
* @return {?}
*/
}, {
key: "reset",
value: function reset() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this._forEachChild(
/**
* @param {?} control
* @param {?} name
* @return {?}
*/
function (control, name) {
control.reset(value[name], {
onlySelf: true,
emitEvent: options.emitEvent
});
});
this._updatePristine(options);
this._updateTouched(options);
this.updateValueAndValidity(options);
}
/**
* The aggregate value of the `FormGroup`, including any disabled controls.
*
* Retrieves all values regardless of disabled status.
* The `value` property is the best way to get the value of the group, because
* it excludes disabled controls in the `FormGroup`.
* @return {?}
*/
}, {
key: "getRawValue",
value: function getRawValue() {
return this._reduceChildren({},
/**
* @param {?} acc
* @param {?} control
* @param {?} name
* @return {?}
*/
function (acc, control, name) {
acc[name] = control instanceof FormControl ? control.value :
/** @type {?} */
control.getRawValue();
return acc;
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_syncPendingControls",
value: function _syncPendingControls() {
/** @type {?} */
var subtreeUpdated = this._reduceChildren(false,
/**
* @param {?} updated
* @param {?} child
* @return {?}
*/
function (updated, child) {
return child._syncPendingControls() ? true : updated;
});
if (subtreeUpdated) this.updateValueAndValidity({
onlySelf: true
});
return subtreeUpdated;
}
/**
* \@internal
* @param {?} name
* @return {?}
*/
}, {
key: "_throwIfControlMissing",
value: function _throwIfControlMissing(name) {
if (!Object.keys(this.controls).length) {
throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");
}
if (!this.controls[name]) {
throw new Error("Cannot find form control with name: ".concat(name, "."));
}
}
/**
* \@internal
* @param {?} cb
* @return {?}
*/
}, {
key: "_forEachChild",
value: function _forEachChild(cb) {
var _this15 = this;
Object.keys(this.controls).forEach(
/**
* @param {?} k
* @return {?}
*/
/**
* @param {?} k
* @return {?}
*/
function (k) {
return cb(_this15.controls[k], k);
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_setUpControls",
value: function _setUpControls() {
var _this16 = this;
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
control.setParent(_this16);
control._registerOnCollectionChange(_this16._onCollectionChange);
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_updateValue",
value: function _updateValue() {
/** @type {?} */
this.value = this._reduceValue();
}
/**
* \@internal
* @param {?} condition
* @return {?}
*/
}, {
key: "_anyControls",
value: function _anyControls(condition) {
var _this17 = this;
/** @type {?} */
var res = false;
this._forEachChild(
/**
* @param {?} control
* @param {?} name
* @return {?}
*/
function (control, name) {
res = res || _this17.contains(name) && condition(control);
});
return res;
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_reduceValue",
value: function _reduceValue() {
var _this18 = this;
return this._reduceChildren({},
/**
* @param {?} acc
* @param {?} control
* @param {?} name
* @return {?}
*/
function (acc, control, name) {
if (control.enabled || _this18.disabled) {
acc[name] = control.value;
}
return acc;
});
}
/**
* \@internal
* @param {?} initValue
* @param {?} fn
* @return {?}
*/
}, {
key: "_reduceChildren",
value: function _reduceChildren(initValue, fn) {
/** @type {?} */
var res = initValue;
this._forEachChild(
/**
* @param {?} control
* @param {?} name
* @return {?}
*/
function (control, name) {
res = fn(res, control, name);
});
return res;
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_allControlsDisabled",
value: function _allControlsDisabled() {
for (var _i5 = 0, _Object$keys = Object.keys(this.controls); _i5 < _Object$keys.length; _i5++) {
var controlName = _Object$keys[_i5];
if (this.controls[controlName].enabled) {
return false;
}
}
return Object.keys(this.controls).length > 0 || this.disabled;
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_checkAllValuesPresent",
value: function _checkAllValuesPresent(value) {
this._forEachChild(
/**
* @param {?} control
* @param {?} name
* @return {?}
*/
function (control, name) {
if (value[name] === undefined) {
throw new Error("Must supply a value for form control with name: '".concat(name, "'."));
}
});
}
}]);
}(AbstractControl);
if (false) {}
/**
* Tracks the value and validity state of an array of `FormControl`,
* `FormGroup` or `FormArray` instances.
*
* A `FormArray` aggregates the values of each child `FormControl` into an array.
* It calculates its status by reducing the status values of its children. For example, if one of
* the controls in a `FormArray` is invalid, the entire array becomes invalid.
*
* `FormArray` is one of the three fundamental building blocks used to define forms in Angular,
* along with `FormControl` and `FormGroup`.
*
* \@usageNotes
*
* ### Create an array of form controls
*
* ```
* const arr = new FormArray([
* new FormControl('Nancy', Validators.minLength(2)),
* new FormControl('Drew'),
* ]);
*
* console.log(arr.value); // ['Nancy', 'Drew']
* console.log(arr.status); // 'VALID'
* ```
*
* ### Create a form array with array-level validators
*
* You include array-level validators and async validators. These come in handy
* when you want to perform validation that considers the value of more than one child
* control.
*
* The two types of validators are passed in separately as the second and third arg
* respectively, or together as part of an options object.
*
* ```
* const arr = new FormArray([
* new FormControl('Nancy'),
* new FormControl('Drew')
* ], {validators: myValidator, asyncValidators: myAsyncValidator});
* ```
*
* ### Set the updateOn property for all controls in a form array
*
* The options object is used to set a default value for each child
* control's `updateOn` property. If you set `updateOn` to `'blur'` at the
* array level, all child controls default to 'blur', unless the child
* has explicitly specified a different `updateOn` value.
*
* ```ts
* const arr = new FormArray([
* new FormControl()
* ], {updateOn: 'blur'});
* ```
*
* ### Adding or removing controls from a form array
*
* To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods
* in `FormArray` itself. These methods ensure the controls are properly tracked in the
* form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate
* the `FormArray` directly, as that result in strange and unexpected behavior such
* as broken change detection.
*
* \@publicApi
*/
var FormArray =
/*#__PURE__*/
function (_AbstractControl3) {
/**
* Creates a new `FormArray` instance.
*
* @param {?} controls An array of child controls. Each child control is given an index
* where it is registered.
*
* @param {?=} validatorOrOpts A synchronous validator function, or an array of
* such functions, or an `AbstractControlOptions` object that contains validation functions
* and a validation trigger.
*
* @param {?=} asyncValidator A single async validator or array of async validator functions
*
*/
function FormArray(controls, validatorOrOpts, asyncValidator) {
var _this19;
_classCallCheck(this, FormArray);
_this19 = _callSuper(this, FormArray, [coerceToValidator(validatorOrOpts), coerceToAsyncValidator(asyncValidator, validatorOrOpts)]);
_this19.controls = controls;
_this19._initObservables();
_this19._setUpdateStrategy(validatorOrOpts);
_this19._setUpControls();
_this19.updateValueAndValidity({
onlySelf: true,
emitEvent: false
});
return _this19;
}
/**
* Get the `AbstractControl` at the given `index` in the array.
*
* @param {?} index Index in the array to retrieve the control
* @return {?}
*/
_inherits(FormArray, _AbstractControl3);
return _createClass2(FormArray, [{
key: "at",
value: function at(index) {
return this.controls[index];
}
/**
* Insert a new `AbstractControl` at the end of the array.
*
* @param {?} control Form control to be inserted
* @return {?}
*/
}, {
key: "push",
value: function push(control) {
this.controls.push(control);
this._registerControl(control);
this.updateValueAndValidity();
this._onCollectionChange();
}
/**
* Insert a new `AbstractControl` at the given `index` in the array.
*
* @param {?} index Index in the array to insert the control
* @param {?} control Form control to be inserted
* @return {?}
*/
}, {
key: "insert",
value: function insert(index, control) {
this.controls.splice(index, 0, control);
this._registerControl(control);
this.updateValueAndValidity();
}
/**
* Remove the control at the given `index` in the array.
*
* @param {?} index Index in the array to remove the control
* @return {?}
*/
}, {
key: "removeAt",
value: function removeAt(index) {
if (this.controls[index]) this.controls[index]._registerOnCollectionChange(
/**
* @return {?}
*/
function () {});
this.controls.splice(index, 1);
this.updateValueAndValidity();
}
/**
* Replace an existing control.
*
* @param {?} index Index in the array to replace the control
* @param {?} control The `AbstractControl` control to replace the existing control
* @return {?}
*/
}, {
key: "setControl",
value: function setControl(index, control) {
if (this.controls[index]) this.controls[index]._registerOnCollectionChange(
/**
* @return {?}
*/
function () {});
this.controls.splice(index, 1);
if (control) {
this.controls.splice(index, 0, control);
this._registerControl(control);
}
this.updateValueAndValidity();
this._onCollectionChange();
}
/**
* Length of the control array.
* @return {?}
*/
}, {
key: "length",
get: function get() {
return this.controls.length;
}
/**
* Sets the value of the `FormArray`. It accepts an array that matches
* the structure of the control.
*
* This method performs strict checks, and throws an error if you try
* to set the value of a control that doesn't exist or if you exclude the
* value of a control.
*
* \@usageNotes
* ### Set the values for the controls in the form array
*
* ```
* const arr = new FormArray([
* new FormControl(),
* new FormControl()
* ]);
* console.log(arr.value); // [null, null]
*
* arr.setValue(['Nancy', 'Drew']);
* console.log(arr.value); // ['Nancy', 'Drew']
* ```
*
* @param {?} value Array of values for the controls
* @param {?=} options Configure options that determine how the control propagates changes and
* emits events after the value changes
*
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default
* is false.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control value is updated.
* When false, no events are emitted.
* The configuration options are passed to the {\@link AbstractControl#updateValueAndValidity
* updateValueAndValidity} method.
* @return {?}
*/
}, {
key: "setValue",
value: function setValue(value) {
var _this20 = this;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this._checkAllValuesPresent(value);
value.forEach(
/**
* @param {?} newValue
* @param {?} index
* @return {?}
*/
function (newValue, index) {
_this20._throwIfControlMissing(index);
_this20.at(index).setValue(newValue, {
onlySelf: true,
emitEvent: options.emitEvent
});
});
this.updateValueAndValidity(options);
}
/**
* Patches the value of the `FormArray`. It accepts an array that matches the
* structure of the control, and does its best to match the values to the correct
* controls in the group.
*
* It accepts both super-sets and sub-sets of the array without throwing an error.
*
* \@usageNotes
* ### Patch the values for controls in a form array
*
* ```
* const arr = new FormArray([
* new FormControl(),
* new FormControl()
* ]);
* console.log(arr.value); // [null, null]
*
* arr.patchValue(['Nancy']);
* console.log(arr.value); // ['Nancy', null]
* ```
*
* @param {?} value Array of latest values for the controls
* @param {?=} options Configure options that determine how the control propagates changes and
* emits events after the value changes
*
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default
* is false.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control value is updated.
* When false, no events are emitted.
* The configuration options are passed to the {\@link AbstractControl#updateValueAndValidity
* updateValueAndValidity} method.
* @return {?}
*/
}, {
key: "patchValue",
value: function patchValue(value) {
var _this21 = this;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
value.forEach(
/**
* @param {?} newValue
* @param {?} index
* @return {?}
*/
function (newValue, index) {
if (_this21.at(index)) {
_this21.at(index).patchValue(newValue, {
onlySelf: true,
emitEvent: options.emitEvent
});
}
});
this.updateValueAndValidity(options);
}
/**
* Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the
* value of all descendants to null or null maps.
*
* You reset to a specific form state by passing in an array of states
* that matches the structure of the control. The state is a standalone value
* or a form state object with both a value and a disabled status.
*
* \@usageNotes
* ### Reset the values in a form array
*
* ```ts
* const arr = new FormArray([
* new FormControl(),
* new FormControl()
* ]);
* arr.reset(['name', 'last name']);
*
* console.log(this.arr.value); // ['name', 'last name']
* ```
*
* ### Reset the values in a form array and the disabled status for the first control
*
* ```
* this.arr.reset([
* {value: 'name', disabled: true},
* 'last'
* ]);
*
* console.log(this.arr.value); // ['name', 'last name']
* console.log(this.arr.get(0).status); // 'DISABLED'
* ```
*
* @param {?=} value Array of values for the controls
* @param {?=} options Configure options that determine how the control propagates changes and
* emits events after the value changes
*
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default
* is false.
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
* observables emit events with the latest status and value when the control is reset.
* When false, no events are emitted.
* The configuration options are passed to the {\@link AbstractControl#updateValueAndValidity
* updateValueAndValidity} method.
* @return {?}
*/
}, {
key: "reset",
value: function reset() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this._forEachChild(
/**
* @param {?} control
* @param {?} index
* @return {?}
*/
function (control, index) {
control.reset(value[index], {
onlySelf: true,
emitEvent: options.emitEvent
});
});
this._updatePristine(options);
this._updateTouched(options);
this.updateValueAndValidity(options);
}
/**
* The aggregate value of the array, including any disabled controls.
*
* Reports all values regardless of disabled status.
* For enabled controls only, the `value` property is the best way to get the value of the array.
* @return {?}
*/
}, {
key: "getRawValue",
value: function getRawValue() {
return this.controls.map(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control instanceof FormControl ? control.value :
/** @type {?} */
control.getRawValue();
});
}
/**
* Remove all controls in the `FormArray`.
*
* \@usageNotes
* ### Remove all elements from a FormArray
*
* ```ts
* const arr = new FormArray([
* new FormControl(),
* new FormControl()
* ]);
* console.log(arr.length); // 2
*
* arr.clear();
* console.log(arr.length); // 0
* ```
*
* It's a simpler and more efficient alternative to removing all elements one by one:
*
* ```ts
* const arr = new FormArray([
* new FormControl(),
* new FormControl()
* ]);
*
* while (arr.length) {
* arr.removeAt(0);
* }
* ```
* @return {?}
*/
}, {
key: "clear",
value: function clear() {
if (this.controls.length < 1) return;
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control._registerOnCollectionChange(
/**
* @return {?}
*/
function () {});
});
this.controls.splice(0);
this.updateValueAndValidity();
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_syncPendingControls",
value: function _syncPendingControls() {
/** @type {?} */
var subtreeUpdated = this.controls.reduce(
/**
* @param {?} updated
* @param {?} child
* @return {?}
*/
function (updated, child) {
return child._syncPendingControls() ? true : updated;
}, false);
if (subtreeUpdated) this.updateValueAndValidity({
onlySelf: true
});
return subtreeUpdated;
}
/**
* \@internal
* @param {?} index
* @return {?}
*/
}, {
key: "_throwIfControlMissing",
value: function _throwIfControlMissing(index) {
if (!this.controls.length) {
throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");
}
if (!this.at(index)) {
throw new Error("Cannot find form control at index ".concat(index));
}
}
/**
* \@internal
* @param {?} cb
* @return {?}
*/
}, {
key: "_forEachChild",
value: function _forEachChild(cb) {
this.controls.forEach(
/**
* @param {?} control
* @param {?} index
* @return {?}
*/
function (control, index) {
cb(control, index);
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_updateValue",
value: function _updateValue() {
var _this22 = this;
/** @type {?} */
this.value = this.controls.filter(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control.enabled || _this22.disabled;
}).map(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control.value;
});
}
/**
* \@internal
* @param {?} condition
* @return {?}
*/
}, {
key: "_anyControls",
value: function _anyControls(condition) {
return this.controls.some(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return control.enabled && condition(control);
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_setUpControls",
value: function _setUpControls() {
var _this23 = this;
this._forEachChild(
/**
* @param {?} control
* @return {?}
*/
function (control) {
return _this23._registerControl(control);
});
}
/**
* \@internal
* @param {?} value
* @return {?}
*/
}, {
key: "_checkAllValuesPresent",
value: function _checkAllValuesPresent(value) {
this._forEachChild(
/**
* @param {?} control
* @param {?} i
* @return {?}
*/
function (control, i) {
if (value[i] === undefined) {
throw new Error("Must supply a value for form control at index: ".concat(i, "."));
}
});
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_allControlsDisabled",
value: function _allControlsDisabled() {
var _iterator = _createForOfIteratorHelper(this.controls),
_step2;
try {
for (_iterator.s(); !(_step2 = _iterator.n()).done;) {
var control = _step2.value;
if (control.enabled) return false;
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return this.controls.length > 0 || this.disabled;
}
/**
* @private
* @param {?} control
* @return {?}
*/
}, {
key: "_registerControl",
value: function _registerControl(control) {
control.setParent(this);
control._registerOnCollectionChange(this._onCollectionChange);
}
}]);
}(AbstractControl);
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/ng_form.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var formDirectiveProvider = {
provide: ControlContainer,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return NgForm;
})
};
var ɵ0 =
/**
* @return {?}
*/
function ɵ0() {
return Promise.resolve(null);
};
/** @type {?} */
var resolvedPromise =
/*@__PURE__*/
ɵ0();
var NgForm =
/*@__PURE__*/
function () {
var NgForm =
/*#__PURE__*/
function (_ControlContainer) {
/**
* @param {?} validators
* @param {?} asyncValidators
*/
function NgForm(validators, asyncValidators) {
var _this24;
_classCallCheck(this, NgForm);
_this24 = _callSuper(this, NgForm);
/**
* \@description
* Returns whether the form submission has been triggered.
*/
_this24.submitted = false;
_this24._directives = [];
/**
* \@description
* Event emitter for the "ngSubmit" event
*/
_this24.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* EventEmitter */
"q"]();
_this24.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));
return _this24;
}
/**
* \@description
* Lifecycle method called after the view is initialized. For internal use only.
* @return {?}
*/
_inherits(NgForm, _ControlContainer);
return _createClass2(NgForm, [{
key: "ngAfterViewInit",
value: function ngAfterViewInit() {
this._setUpdateStrategy();
}
/**
* \@description
* The directive instance.
* @return {?}
*/
}, {
key: "formDirective",
get: function get() {
return this;
}
/**
* \@description
* The internal `FormGroup` instance.
* @return {?}
*/
}, {
key: "control",
get: function get() {
return this.form;
}
/**
* \@description
* Returns an array representing the path to this group. Because this directive
* always lives at the top level of a form, it is always an empty array.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return [];
}
/**
* \@description
* Returns a map of the controls in this group.
* @return {?}
*/
}, {
key: "controls",
get: function get() {
return this.form.controls;
}
/**
* \@description
* Method that sets up the control directive in this group, re-calculates its value
* and validity, and adds the instance to the internal list of directives.
*
* @param {?} dir The `NgModel` directive instance.
* @return {?}
*/
}, {
key: "addControl",
value: function addControl(dir) {
var _this25 = this;
resolvedPromise.then(
/**
* @return {?}
*/
function () {
/** @type {?} */
var container = _this25._findContainer(dir.path);
/** @type {?} */
dir.control =
/** @type {?} */
container.registerControl(dir.name, dir.control);
setUpControl(dir.control, dir);
dir.control.updateValueAndValidity({
emitEvent: false
});
_this25._directives.push(dir);
});
}
/**
* \@description
* Retrieves the `FormControl` instance from the provided `NgModel` directive.
*
* @param {?} dir The `NgModel` directive instance.
* @return {?}
*/
}, {
key: "getControl",
value: function getControl(dir) {
return (
/** @type {?} */
this.form.get(dir.path)
);
}
/**
* \@description
* Removes the `NgModel` instance from the internal list of directives
*
* @param {?} dir The `NgModel` directive instance.
* @return {?}
*/
}, {
key: "removeControl",
value: function removeControl(dir) {
var _this26 = this;
resolvedPromise.then(
/**
* @return {?}
*/
function () {
/** @type {?} */
var container = _this26._findContainer(dir.path);
if (container) {
container.removeControl(dir.name);
}
removeDir(_this26._directives, dir);
});
}
/**
* \@description
* Adds a new `NgModelGroup` directive instance to the form.
*
* @param {?} dir The `NgModelGroup` directive instance.
* @return {?}
*/
}, {
key: "addFormGroup",
value: function addFormGroup(dir) {
var _this27 = this;
resolvedPromise.then(
/**
* @return {?}
*/
function () {
/** @type {?} */
var container = _this27._findContainer(dir.path);
/** @type {?} */
var group = new FormGroup({});
setUpFormContainer(group, dir);
container.registerControl(dir.name, group);
group.updateValueAndValidity({
emitEvent: false
});
});
}
/**
* \@description
* Removes the `NgModelGroup` directive instance from the form.
*
* @param {?} dir The `NgModelGroup` directive instance.
* @return {?}
*/
}, {
key: "removeFormGroup",
value: function removeFormGroup(dir) {
var _this28 = this;
resolvedPromise.then(
/**
* @return {?}
*/
function () {
/** @type {?} */
var container = _this28._findContainer(dir.path);
if (container) {
container.removeControl(dir.name);
}
});
}
/**
* \@description
* Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance
*
* @param {?} dir The `NgModelGroup` directive instance.
* @return {?}
*/
}, {
key: "getFormGroup",
value: function getFormGroup(dir) {
return (
/** @type {?} */
this.form.get(dir.path)
);
}
/**
* Sets the new value for the provided `NgControl` directive.
*
* @param {?} dir The `NgControl` directive instance.
* @param {?} value The new value for the directive's control.
* @return {?}
*/
}, {
key: "updateModel",
value: function updateModel(dir, value) {
var _this29 = this;
resolvedPromise.then(
/**
* @return {?}
*/
function () {
/** @type {?} */
var ctrl =
/** @type {?} */
_this29.form.get(
/** @type {?} */
dir.path);
ctrl.setValue(value);
});
}
/**
* \@description
* Sets the value for this `FormGroup`.
*
* @param {?} value The new value
* @return {?}
*/
}, {
key: "setValue",
value: function setValue(value) {
this.control.setValue(value);
}
/**
* \@description
* Method called when the "submit" event is triggered on the form.
* Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
*
* @param {?} $event The "submit" event object
* @return {?}
*/
}, {
key: "onSubmit",
value: function onSubmit($event) {
/** @type {?} */
this.submitted = true;
syncPendingControls(this.form, this._directives);
this.ngSubmit.emit($event);
return false;
}
/**
* \@description
* Method called when the "reset" event is triggered on the form.
* @return {?}
*/
}, {
key: "onReset",
value: function onReset() {
this.resetForm();
}
/**
* \@description
* Resets the form to an initial value and resets its submitted status.
*
* @param {?=} value The new value for the form.
* @return {?}
*/
}, {
key: "resetForm",
value: function resetForm() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
this.form.reset(value);
/** @type {?} */
this.submitted = false;
}
/**
* @private
* @return {?}
*/
}, {
key: "_setUpdateStrategy",
value: function _setUpdateStrategy() {
if (this.options && this.options.updateOn != null) {
this.form._updateOn = this.options.updateOn;
}
}
/**
* \@internal
* @param {?} path
* @return {?}
*/
}, {
key: "_findContainer",
value: function _findContainer(path) {
path.pop();
return path.length ?
/** @type {?} */
this.form.get(path) : this.form;
}
}]);
}(ControlContainer);
NgForm.ɵfac = function NgForm_Factory(t) {
return new (t || NgForm)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10));
};
NgForm.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: NgForm,
selectors: [["form", 3, "ngNoForm", "", 3, "formGroup", ""], ["ng-form"], ["", "ngForm", ""]],
hostBindings: function NgForm_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("submit", function NgForm_submit_HostBindingHandler($event) {
return ctx.onSubmit($event);
})("reset", function NgForm_reset_HostBindingHandler() {
return ctx.onReset();
});
}
},
inputs: {
options: ["ngFormOptions", "options"]
},
outputs: {
ngSubmit: "ngSubmit"
},
exportAs: ["ngForm"],
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([formDirectiveProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return NgForm;
}();
if (false) {}
var AbstractFormGroupDirective =
/*@__PURE__*/
function () {
var AbstractFormGroupDirective =
/*#__PURE__*/
function (_ControlContainer2) {
function AbstractFormGroupDirective() {
_classCallCheck(this, AbstractFormGroupDirective);
return _callSuper(this, AbstractFormGroupDirective, arguments);
}
_inherits(AbstractFormGroupDirective, _ControlContainer2);
return _createClass2(AbstractFormGroupDirective, [{
key: "ngOnInit",
value:
/**
* \@description
* An internal callback method triggered on the instance after the inputs are set.
* Registers the group with its parent group.
* @return {?}
*/
function ngOnInit() {
this._checkParentType();
/** @type {?} */
this.formDirective.addFormGroup(this);
}
/**
* \@description
* An internal callback method triggered before the instance is destroyed.
* Removes the group from its parent group.
* @return {?}
*/
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
if (this.formDirective) {
this.formDirective.removeFormGroup(this);
}
}
/**
* \@description
* The `FormGroup` bound to this directive.
* @return {?}
*/
}, {
key: "control",
get: function get() {
return (
/** @type {?} */
this.formDirective.getFormGroup(this)
);
}
/**
* \@description
* The path to this group from the top-level directive.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
}
/**
* \@description
* The top-level directive for this group if present, otherwise null.
* @return {?}
*/
}, {
key: "formDirective",
get: function get() {
return this._parent ? this._parent.formDirective : null;
}
/**
* \@description
* The synchronous validators registered with this group.
* @return {?}
*/
}, {
key: "validator",
get: function get() {
return composeValidators(this._validators);
}
/**
* \@description
* The async validators registered with this group.
* @return {?}
*/
}, {
key: "asyncValidator",
get: function get() {
return composeAsyncValidators(this._asyncValidators);
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_checkParentType",
value: function _checkParentType() {}
}]);
}(ControlContainer);
AbstractFormGroupDirective.ɵfac = function AbstractFormGroupDirective_Factory(t) {
return ɵAbstractFormGroupDirective_BaseFactory(t || AbstractFormGroupDirective);
};
AbstractFormGroupDirective.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: AbstractFormGroupDirective,
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return AbstractFormGroupDirective;
}();
var ɵAbstractFormGroupDirective_BaseFactory =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵgetInheritedFactory */
"cc"](AbstractFormGroupDirective);
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/template_driven_errors.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var TemplateDrivenErrors =
/*#__PURE__*/
function () {
function TemplateDrivenErrors() {
_classCallCheck(this, TemplateDrivenErrors);
}
return _createClass2(TemplateDrivenErrors, null, [{
key: "modelParentException",
value:
/**
* @return {?}
*/
function modelParentException() {
throw new Error("\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive \"formControlName\" instead. Example:\n\n ".concat(FormErrorExamples.formControlName, "\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ").concat(FormErrorExamples.ngModelWithFormGroup));
}
/**
* @return {?}
*/
}, {
key: "formGroupNameException",
value: function formGroupNameException() {
throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(FormErrorExamples.formGroupName, "\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(FormErrorExamples.ngModelGroup));
}
/**
* @return {?}
*/
}, {
key: "missingNameException",
value: function missingNameException() {
throw new Error("If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as 'standalone' in ngModelOptions.\n\n Example 1: \n Example 2: ");
}
/**
* @return {?}
*/
}, {
key: "modelGroupParentException",
value: function modelGroupParentException() {
throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(FormErrorExamples.formGroupName, "\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(FormErrorExamples.ngModelGroup));
}
}]);
}();
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/ng_model_group.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var modelGroupProvider = {
provide: ControlContainer,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return NgModelGroup;
})
};
var NgModelGroup =
/*@__PURE__*/
function () {
var NgModelGroup =
/*#__PURE__*/
function (_AbstractFormGroupDir) {
/**
* @param {?} parent
* @param {?} validators
* @param {?} asyncValidators
*/
function NgModelGroup(parent, validators, asyncValidators) {
var _this30;
_classCallCheck(this, NgModelGroup);
_this30 = _callSuper(this, NgModelGroup);
_this30._parent = parent;
_this30._validators = validators;
_this30._asyncValidators = asyncValidators;
return _this30;
}
/**
* \@internal
* @return {?}
*/
_inherits(NgModelGroup, _AbstractFormGroupDir);
return _createClass2(NgModelGroup, [{
key: "_checkParentType",
value: function _checkParentType() {
if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {
TemplateDrivenErrors.modelGroupParentException();
}
}
}]);
}(AbstractFormGroupDirective);
NgModelGroup.ɵfac = function NgModelGroup_Factory(t) {
return new (t || NgModelGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](ControlContainer, 5), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10));
};
NgModelGroup.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: NgModelGroup,
selectors: [["", "ngModelGroup", ""]],
inputs: {
name: ["ngModelGroup", "name"]
},
exportAs: ["ngModelGroup"],
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([modelGroupProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return NgModelGroup;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/ng_model.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var formControlBinding = {
provide: NgControl,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return NgModel;
})
};
var ɵ0$1 =
/**
* @return {?}
*/
function ɵ0$1() {
return Promise.resolve(null);
};
/**
* `ngModel` forces an additional change detection run when its inputs change:
* E.g.:
* ```
* {{myModel.valid}}
*
* ```
* I.e. `ngModel` can export itself on the element and then be used in the template.
* Normally, this would result in expressions before the `input` that use the exported directive
* to have and old value as they have been
* dirty checked before. As this is a very common case for `ngModel`, we added this second change
* detection run.
*
* Notes:
* - this is just one extra run no matter how many `ngModel` have been changed.
* - this is a general problem when using `exportAs` for directives!
* @type {?}
*/
var resolvedPromise$1 =
/*@__PURE__*/
ɵ0$1();
var NgModel =
/*@__PURE__*/
function () {
var NgModel =
/*#__PURE__*/
function (_NgControl) {
/**
* @param {?} parent
* @param {?} validators
* @param {?} asyncValidators
* @param {?} valueAccessors
*/
function NgModel(parent, validators, asyncValidators, valueAccessors) {
var _this31;
_classCallCheck(this, NgModel);
_this31 = _callSuper(this, NgModel);
_this31.control = new FormControl();
/**
* \@internal
*/
_this31._registered = false;
/**
* \@description
* Event emitter for producing the `ngModelChange` event after
* the view model updates.
*/
_this31.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* EventEmitter */
"q"]();
_this31._parent = parent;
_this31._rawValidators = validators || [];
_this31._rawAsyncValidators = asyncValidators || [];
_this31.valueAccessor = selectValueAccessor(_this31, valueAccessors);
return _this31;
}
/**
* \@description
* A lifecycle method called when the directive's inputs change. For internal use
* only.
*
* @param {?} changes A object of key/value pairs for the set of changed inputs.
* @return {?}
*/
_inherits(NgModel, _NgControl);
return _createClass2(NgModel, [{
key: "ngOnChanges",
value: function ngOnChanges(changes) {
this._checkForErrors();
if (!this._registered) this._setUpControl();
if ('isDisabled' in changes) {
this._updateDisabled(changes);
}
if (isPropertyUpdated(changes, this.viewModel)) {
this._updateValue(this.model);
this.viewModel = this.model;
}
}
/**
* \@description
* Lifecycle method called before the directive's instance is destroyed. For internal
* use only.
* @return {?}
*/
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
this.formDirective && this.formDirective.removeControl(this);
}
/**
* \@description
* Returns an array that represents the path from the top-level form to this control.
* Each index is the string name of the control on that level.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return this._parent ? controlPath(this.name, this._parent) : [this.name];
}
/**
* \@description
* The top-level directive for this control if present, otherwise null.
* @return {?}
*/
}, {
key: "formDirective",
get: function get() {
return this._parent ? this._parent.formDirective : null;
}
/**
* \@description
* Synchronous validator function composed of all the synchronous validators
* registered with this directive.
* @return {?}
*/
}, {
key: "validator",
get: function get() {
return composeValidators(this._rawValidators);
}
/**
* \@description
* Async validator function composed of all the async validators registered with this
* directive.
* @return {?}
*/
}, {
key: "asyncValidator",
get: function get() {
return composeAsyncValidators(this._rawAsyncValidators);
}
/**
* \@description
* Sets the new value for the view model and emits an `ngModelChange` event.
*
* @param {?} newValue The new value emitted by `ngModelChange`.
* @return {?}
*/
}, {
key: "viewToModelUpdate",
value: function viewToModelUpdate(newValue) {
this.viewModel = newValue;
this.update.emit(newValue);
}
/**
* @private
* @return {?}
*/
}, {
key: "_setUpControl",
value: function _setUpControl() {
this._setUpdateStrategy();
this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);
this._registered = true;
}
/**
* @private
* @return {?}
*/
}, {
key: "_setUpdateStrategy",
value: function _setUpdateStrategy() {
if (this.options && this.options.updateOn != null) {
this.control._updateOn = this.options.updateOn;
}
}
/**
* @private
* @return {?}
*/
}, {
key: "_isStandalone",
value: function _isStandalone() {
return !this._parent || !!(this.options && this.options.standalone);
}
/**
* @private
* @return {?}
*/
}, {
key: "_setUpStandalone",
value: function _setUpStandalone() {
setUpControl(this.control, this);
this.control.updateValueAndValidity({
emitEvent: false
});
}
/**
* @private
* @return {?}
*/
}, {
key: "_checkForErrors",
value: function _checkForErrors() {
if (!this._isStandalone()) {
this._checkParentType();
}
this._checkName();
}
/**
* @private
* @return {?}
*/
}, {
key: "_checkParentType",
value: function _checkParentType() {
if (!(this._parent instanceof NgModelGroup) && this._parent instanceof AbstractFormGroupDirective) {
TemplateDrivenErrors.formGroupNameException();
} else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {
TemplateDrivenErrors.modelParentException();
}
}
/**
* @private
* @return {?}
*/
}, {
key: "_checkName",
value: function _checkName() {
if (this.options && this.options.name) this.name = this.options.name;
if (!this._isStandalone() && !this.name) {
TemplateDrivenErrors.missingNameException();
}
}
/**
* @private
* @param {?} value
* @return {?}
*/
}, {
key: "_updateValue",
value: function _updateValue(value) {
var _this32 = this;
resolvedPromise$1.then(
/**
* @return {?}
*/
function () {
_this32.control.setValue(value, {
emitViewToModelChange: false
});
});
}
/**
* @private
* @param {?} changes
* @return {?}
*/
}, {
key: "_updateDisabled",
value: function _updateDisabled(changes) {
var _this33 = this;
/** @type {?} */
var disabledValue = changes['isDisabled'].currentValue;
/** @type {?} */
var isDisabled = disabledValue === '' || disabledValue && disabledValue !== 'false';
resolvedPromise$1.then(
/**
* @return {?}
*/
function () {
if (isDisabled && !_this33.control.disabled) {
_this33.control.disable();
} else if (!isDisabled && _this33.control.disabled) {
_this33.control.enable();
}
});
}
}]);
}(NgControl);
NgModel.ɵfac = function NgModel_Factory(t) {
return new (t || NgModel)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](ControlContainer, 9), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALUE_ACCESSOR, 10));
};
NgModel.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: NgModel,
selectors: [["", "ngModel", "", 3, "formControlName", "", 3, "formControl", ""]],
inputs: {
name: "name",
isDisabled: ["disabled", "isDisabled"],
model: ["ngModel", "model"],
options: ["ngModelOptions", "options"]
},
outputs: {
update: "ngModelChange"
},
exportAs: ["ngModel"],
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([formControlBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"], _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵNgOnChangesFeature */
"Fb"]]
});
return NgModel;
}();
if (false) {}
var ɵNgNoValidate =
/*@__PURE__*/
function () {
var ɵNgNoValidate =
/*#__PURE__*/
_createClass2(function ɵNgNoValidate() {
_classCallCheck(this, ɵNgNoValidate);
});
ɵNgNoValidate.ɵfac = function ɵNgNoValidate_Factory(t) {
return new (t || ɵNgNoValidate)();
};
ɵNgNoValidate.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: ɵNgNoValidate,
selectors: [["form", 3, "ngNoForm", "", 3, "ngNativeValidate", ""]],
hostAttrs: ["novalidate", ""]
});
return ɵNgNoValidate;
}();
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/reactive_directives/form_control_directive.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Token to provide to turn off the ngModel warning on formControl and formControlName.
* @type {?}
*/
var NG_MODEL_WITH_FORM_CONTROL_WARNING =
/*@__PURE__*/
new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* InjectionToken */
"t"]('NgModelWithFormControlWarning');
/** @type {?} */
var formControlBinding$1 = {
provide: NgControl,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return FormControlDirective;
})
};
var FormControlDirective =
/*@__PURE__*/
function () {
var FormControlDirective =
/*#__PURE__*/
function (_NgControl2) {
/**
* @param {?} validators
* @param {?} asyncValidators
* @param {?} valueAccessors
* @param {?} _ngModelWarningConfig
*/
function FormControlDirective(validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
var _this34;
_classCallCheck(this, FormControlDirective);
_this34 = _callSuper(this, FormControlDirective);
_this34._ngModelWarningConfig = _ngModelWarningConfig;
/**
* @deprecated as of v6
*/
_this34.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* EventEmitter */
"q"]();
/**
* \@description
* Instance property used to track whether an ngModel warning has been sent out for this
* particular `FormControlDirective` instance. Used to support warning config of "always".
*
* \@internal
*/
_this34._ngModelWarningSent = false;
_this34._rawValidators = validators || [];
_this34._rawAsyncValidators = asyncValidators || [];
_this34.valueAccessor = selectValueAccessor(_this34, valueAccessors);
return _this34;
}
/**
* \@description
* Triggers a warning that this input should not be used with reactive forms.
* @param {?} isDisabled
* @return {?}
*/
_inherits(FormControlDirective, _NgControl2);
return _createClass2(FormControlDirective, [{
key: "isDisabled",
set: function set(isDisabled) {
ReactiveErrors.disabledAttrWarning();
}
/**
* \@description
* A lifecycle method called when the directive's inputs change. For internal use
* only.
*
* @param {?} changes A object of key/value pairs for the set of changed inputs.
* @return {?}
*/
}, {
key: "ngOnChanges",
value: function ngOnChanges(changes) {
if (this._isControlChanged(changes)) {
setUpControl(this.form, this);
if (this.control.disabled &&
/** @type {?} */
this.valueAccessor.setDisabledState) {
/** @type {?} */
/** @type {?} */
this.valueAccessor.setDisabledState(true);
}
this.form.updateValueAndValidity({
emitEvent: false
});
}
if (isPropertyUpdated(changes, this.viewModel)) {
_ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);
this.form.setValue(this.model);
this.viewModel = this.model;
}
}
/**
* \@description
* Returns an array that represents the path from the top-level form to this control.
* Each index is the string name of the control on that level.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return [];
}
/**
* \@description
* Synchronous validator function composed of all the synchronous validators
* registered with this directive.
* @return {?}
*/
}, {
key: "validator",
get: function get() {
return composeValidators(this._rawValidators);
}
/**
* \@description
* Async validator function composed of all the async validators registered with this
* directive.
* @return {?}
*/
}, {
key: "asyncValidator",
get: function get() {
return composeAsyncValidators(this._rawAsyncValidators);
}
/**
* \@description
* The `FormControl` bound to this directive.
* @return {?}
*/
}, {
key: "control",
get: function get() {
return this.form;
}
/**
* \@description
* Sets the new value for the view model and emits an `ngModelChange` event.
*
* @param {?} newValue The new value for the view model.
* @return {?}
*/
}, {
key: "viewToModelUpdate",
value: function viewToModelUpdate(newValue) {
this.viewModel = newValue;
this.update.emit(newValue);
}
/**
* @private
* @param {?} changes
* @return {?}
*/
}, {
key: "_isControlChanged",
value: function _isControlChanged(changes) {
return changes.hasOwnProperty('form');
}
}]);
}(NgControl);
FormControlDirective.ɵfac = function FormControlDirective_Factory(t) {
return new (t || FormControlDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));
};
FormControlDirective.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: FormControlDirective,
selectors: [["", "formControl", ""]],
inputs: {
isDisabled: ["disabled", "isDisabled"],
form: ["formControl", "form"],
model: ["ngModel", "model"]
},
outputs: {
update: "ngModelChange"
},
exportAs: ["ngForm"],
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([formControlBinding$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"], _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵNgOnChangesFeature */
"Fb"]]
});
/**
* \@description
* Static property used to track whether any ngModel warnings have been sent across
* all instances of FormControlDirective. Used to support warning config of "once".
*
* \@internal
*/
FormControlDirective._ngModelWarningSentOnce = false;
return FormControlDirective;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/reactive_directives/form_group_directive.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var formDirectiveProvider$1 = {
provide: ControlContainer,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return FormGroupDirective;
})
};
var FormGroupDirective =
/*@__PURE__*/
function () {
var FormGroupDirective =
/*#__PURE__*/
function (_ControlContainer3) {
/**
* @param {?} _validators
* @param {?} _asyncValidators
*/
function FormGroupDirective(_validators, _asyncValidators) {
var _this35;
_classCallCheck(this, FormGroupDirective);
_this35 = _callSuper(this, FormGroupDirective);
_this35._validators = _validators;
_this35._asyncValidators = _asyncValidators;
/**
* \@description
* Reports whether the form submission has been triggered.
*/
_this35.submitted = false;
/**
* \@description
* Tracks the list of added `FormControlName` instances
*/
_this35.directives = [];
/**
* \@description
* Tracks the `FormGroup` bound to this directive.
*/
_this35.form =
/** @type {?} */
null;
/**
* \@description
* Emits an event when the form submission has been triggered.
*/
_this35.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* EventEmitter */
"q"]();
return _this35;
}
/**
* \@description
* A lifecycle method called when the directive's inputs change. For internal use only.
*
* @param {?} changes A object of key/value pairs for the set of changed inputs.
* @return {?}
*/
_inherits(FormGroupDirective, _ControlContainer3);
return _createClass2(FormGroupDirective, [{
key: "ngOnChanges",
value: function ngOnChanges(changes) {
this._checkFormPresent();
if (changes.hasOwnProperty('form')) {
this._updateValidators();
this._updateDomValue();
this._updateRegistrations();
}
}
/**
* \@description
* Returns this directive's instance.
* @return {?}
*/
}, {
key: "formDirective",
get: function get() {
return this;
}
/**
* \@description
* Returns the `FormGroup` bound to this directive.
* @return {?}
*/
}, {
key: "control",
get: function get() {
return this.form;
}
/**
* \@description
* Returns an array representing the path to this group. Because this directive
* always lives at the top level of a form, it always an empty array.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return [];
}
/**
* \@description
* Method that sets up the control directive in this group, re-calculates its value
* and validity, and adds the instance to the internal list of directives.
*
* @param {?} dir The `FormControlName` directive instance.
* @return {?}
*/
}, {
key: "addControl",
value: function addControl(dir) {
/** @type {?} */
var ctrl = this.form.get(dir.path);
setUpControl(ctrl, dir);
ctrl.updateValueAndValidity({
emitEvent: false
});
this.directives.push(dir);
return ctrl;
}
/**
* \@description
* Retrieves the `FormControl` instance from the provided `FormControlName` directive
*
* @param {?} dir The `FormControlName` directive instance.
* @return {?}
*/
}, {
key: "getControl",
value: function getControl(dir) {
return (
/** @type {?} */
this.form.get(dir.path)
);
}
/**
* \@description
* Removes the `FormControlName` instance from the internal list of directives
*
* @param {?} dir The `FormControlName` directive instance.
* @return {?}
*/
}, {
key: "removeControl",
value: function removeControl(dir) {
removeDir(this.directives, dir);
}
/**
* Adds a new `FormGroupName` directive instance to the form.
*
* @param {?} dir The `FormGroupName` directive instance.
* @return {?}
*/
}, {
key: "addFormGroup",
value: function addFormGroup(dir) {
/** @type {?} */
var ctrl = this.form.get(dir.path);
setUpFormContainer(ctrl, dir);
ctrl.updateValueAndValidity({
emitEvent: false
});
}
/**
* No-op method to remove the form group.
*
* @param {?} dir The `FormGroupName` directive instance.
* @return {?}
*/
}, {
key: "removeFormGroup",
value: function removeFormGroup(dir) {}
/**
* \@description
* Retrieves the `FormGroup` for a provided `FormGroupName` directive instance
*
* @param {?} dir The `FormGroupName` directive instance.
* @return {?}
*/
}, {
key: "getFormGroup",
value: function getFormGroup(dir) {
return (
/** @type {?} */
this.form.get(dir.path)
);
}
/**
* Adds a new `FormArrayName` directive instance to the form.
*
* @param {?} dir The `FormArrayName` directive instance.
* @return {?}
*/
}, {
key: "addFormArray",
value: function addFormArray(dir) {
/** @type {?} */
var ctrl = this.form.get(dir.path);
setUpFormContainer(ctrl, dir);
ctrl.updateValueAndValidity({
emitEvent: false
});
}
/**
* No-op method to remove the form array.
*
* @param {?} dir The `FormArrayName` directive instance.
* @return {?}
*/
}, {
key: "removeFormArray",
value: function removeFormArray(dir) {}
/**
* \@description
* Retrieves the `FormArray` for a provided `FormArrayName` directive instance.
*
* @param {?} dir The `FormArrayName` directive instance.
* @return {?}
*/
}, {
key: "getFormArray",
value: function getFormArray(dir) {
return (
/** @type {?} */
this.form.get(dir.path)
);
}
/**
* Sets the new value for the provided `FormControlName` directive.
*
* @param {?} dir The `FormControlName` directive instance.
* @param {?} value The new value for the directive's control.
* @return {?}
*/
}, {
key: "updateModel",
value: function updateModel(dir, value) {
/** @type {?} */
var ctrl =
/** @type {?} */
this.form.get(dir.path);
ctrl.setValue(value);
}
/**
* \@description
* Method called with the "submit" event is triggered on the form.
* Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
*
* @param {?} $event The "submit" event object
* @return {?}
*/
}, {
key: "onSubmit",
value: function onSubmit($event) {
/** @type {?} */
this.submitted = true;
syncPendingControls(this.form, this.directives);
this.ngSubmit.emit($event);
return false;
}
/**
* \@description
* Method called when the "reset" event is triggered on the form.
* @return {?}
*/
}, {
key: "onReset",
value: function onReset() {
this.resetForm();
}
/**
* \@description
* Resets the form to an initial value and resets its submitted status.
*
* @param {?=} value The new value for the form.
* @return {?}
*/
}, {
key: "resetForm",
value: function resetForm() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
this.form.reset(value);
/** @type {?} */
this.submitted = false;
}
/**
* \@internal
* @return {?}
*/
}, {
key: "_updateDomValue",
value: function _updateDomValue() {
var _this36 = this;
this.directives.forEach(
/**
* @param {?} dir
* @return {?}
*/
/**
* @param {?} dir
* @return {?}
*/
function (dir) {
/** @type {?} */
var newCtrl = _this36.form.get(dir.path);
if (dir.control !== newCtrl) {
cleanUpControl(dir.control, dir);
if (newCtrl) setUpControl(newCtrl, dir);
/** @type {?} */
dir.control = newCtrl;
}
});
this.form._updateTreeValidity({
emitEvent: false
});
}
/**
* @private
* @return {?}
*/
}, {
key: "_updateRegistrations",
value: function _updateRegistrations() {
var _this37 = this;
this.form._registerOnCollectionChange(
/**
* @return {?}
*/
function () {
return _this37._updateDomValue();
});
if (this._oldForm) this._oldForm._registerOnCollectionChange(
/**
* @return {?}
*/
function () {});
this._oldForm = this.form;
}
/**
* @private
* @return {?}
*/
}, {
key: "_updateValidators",
value: function _updateValidators() {
/** @type {?} */
var sync = composeValidators(this._validators);
this.form.validator = Validators.compose([
/** @type {?} */
this.form.validator,
/** @type {?} */
sync]);
/** @type {?} */
var async = composeAsyncValidators(this._asyncValidators);
this.form.asyncValidator = Validators.composeAsync([
/** @type {?} */
this.form.asyncValidator,
/** @type {?} */
async]);
}
/**
* @private
* @return {?}
*/
}, {
key: "_checkFormPresent",
value: function _checkFormPresent() {
if (!this.form) {
ReactiveErrors.missingFormException();
}
}
}]);
}(ControlContainer);
FormGroupDirective.ɵfac = function FormGroupDirective_Factory(t) {
return new (t || FormGroupDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10));
};
FormGroupDirective.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: FormGroupDirective,
selectors: [["", "formGroup", ""]],
hostBindings: function FormGroupDirective_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵlistener */
"ic"]("submit", function FormGroupDirective_submit_HostBindingHandler($event) {
return ctx.onSubmit($event);
})("reset", function FormGroupDirective_reset_HostBindingHandler() {
return ctx.onReset();
});
}
},
inputs: {
form: ["formGroup", "form"]
},
outputs: {
ngSubmit: "ngSubmit"
},
exportAs: ["ngForm"],
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([formDirectiveProvider$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"], _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵNgOnChangesFeature */
"Fb"]]
});
return FormGroupDirective;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/reactive_directives/form_group_name.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var formGroupNameProvider = {
provide: ControlContainer,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return FormGroupName;
})
};
var FormGroupName =
/*@__PURE__*/
function () {
var FormGroupName =
/*#__PURE__*/
function (_AbstractFormGroupDir2) {
/**
* @param {?} parent
* @param {?} validators
* @param {?} asyncValidators
*/
function FormGroupName(parent, validators, asyncValidators) {
var _this38;
_classCallCheck(this, FormGroupName);
_this38 = _callSuper(this, FormGroupName);
_this38._parent = parent;
_this38._validators = validators;
_this38._asyncValidators = asyncValidators;
return _this38;
}
/**
* \@internal
* @return {?}
*/
_inherits(FormGroupName, _AbstractFormGroupDir2);
return _createClass2(FormGroupName, [{
key: "_checkParentType",
value: function _checkParentType() {
if (_hasInvalidParent(this._parent)) {
ReactiveErrors.groupParentException();
}
}
}]);
}(AbstractFormGroupDirective);
FormGroupName.ɵfac = function FormGroupName_Factory(t) {
return new (t || FormGroupName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10));
};
FormGroupName.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: FormGroupName,
selectors: [["", "formGroupName", ""]],
inputs: {
name: ["formGroupName", "name"]
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([formGroupNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return FormGroupName;
}();
if (false) {}
/** @type {?} */
var formArrayNameProvider = {
provide: ControlContainer,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return FormArrayName;
})
};
var FormArrayName =
/*@__PURE__*/
function () {
var FormArrayName =
/*#__PURE__*/
function (_ControlContainer4) {
/**
* @param {?} parent
* @param {?} validators
* @param {?} asyncValidators
*/
function FormArrayName(parent, validators, asyncValidators) {
var _this39;
_classCallCheck(this, FormArrayName);
_this39 = _callSuper(this, FormArrayName);
_this39._parent = parent;
_this39._validators = validators;
_this39._asyncValidators = asyncValidators;
return _this39;
}
/**
* \@description
* A lifecycle method called when the directive's inputs are initialized. For internal use only.
*
* @throws If the directive does not have a valid parent.
* @return {?}
*/
_inherits(FormArrayName, _ControlContainer4);
return _createClass2(FormArrayName, [{
key: "ngOnInit",
value: function ngOnInit() {
this._checkParentType();
/** @type {?} */
this.formDirective.addFormArray(this);
}
/**
* \@description
* A lifecycle method called before the directive's instance is destroyed. For internal use only.
* @return {?}
*/
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
if (this.formDirective) {
this.formDirective.removeFormArray(this);
}
}
/**
* \@description
* The `FormArray` bound to this directive.
* @return {?}
*/
}, {
key: "control",
get: function get() {
return (
/** @type {?} */
this.formDirective.getFormArray(this)
);
}
/**
* \@description
* The top-level directive for this group if present, otherwise null.
* @return {?}
*/
}, {
key: "formDirective",
get: function get() {
return this._parent ?
/** @type {?} */
this._parent.formDirective : null;
}
/**
* \@description
* Returns an array that represents the path from the top-level form to this control.
* Each index is the string name of the control on that level.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
}
/**
* \@description
* Synchronous validator function composed of all the synchronous validators registered with this
* directive.
* @return {?}
*/
}, {
key: "validator",
get: function get() {
return composeValidators(this._validators);
}
/**
* \@description
* Async validator function composed of all the async validators registered with this directive.
* @return {?}
*/
}, {
key: "asyncValidator",
get: function get() {
return composeAsyncValidators(this._asyncValidators);
}
/**
* @private
* @return {?}
*/
}, {
key: "_checkParentType",
value: function _checkParentType() {
if (_hasInvalidParent(this._parent)) {
ReactiveErrors.arrayParentException();
}
}
}]);
}(ControlContainer);
FormArrayName.ɵfac = function FormArrayName_Factory(t) {
return new (t || FormArrayName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10));
};
FormArrayName.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: FormArrayName,
selectors: [["", "formArrayName", ""]],
inputs: {
name: ["formArrayName", "name"]
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([formArrayNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return FormArrayName;
}();
if (false) {}
/**
* @param {?} parent
* @return {?}
*/
function _hasInvalidParent(parent) {
return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) && !(parent instanceof FormArrayName);
}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/reactive_directives/form_control_name.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var controlNameBinding = {
provide: NgControl,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return FormControlName;
})
};
var FormControlName =
/*@__PURE__*/
function () {
var FormControlName =
/*#__PURE__*/
function (_NgControl3) {
/**
* @param {?} parent
* @param {?} validators
* @param {?} asyncValidators
* @param {?} valueAccessors
* @param {?} _ngModelWarningConfig
*/
function FormControlName(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
var _this40;
_classCallCheck(this, FormControlName);
_this40 = _callSuper(this, FormControlName);
_this40._ngModelWarningConfig = _ngModelWarningConfig;
_this40._added = false;
/**
* @deprecated as of v6
*/
_this40.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* EventEmitter */
"q"]();
/**
* \@description
* Instance property used to track whether an ngModel warning has been sent out for this
* particular FormControlName instance. Used to support warning config of "always".
*
* \@internal
*/
_this40._ngModelWarningSent = false;
_this40._parent = parent;
_this40._rawValidators = validators || [];
_this40._rawAsyncValidators = asyncValidators || [];
_this40.valueAccessor = selectValueAccessor(_this40, valueAccessors);
return _this40;
}
/**
* \@description
* Triggers a warning that this input should not be used with reactive forms.
* @param {?} isDisabled
* @return {?}
*/
_inherits(FormControlName, _NgControl3);
return _createClass2(FormControlName, [{
key: "isDisabled",
set: function set(isDisabled) {
ReactiveErrors.disabledAttrWarning();
}
/**
* \@description
* A lifecycle method called when the directive's inputs change. For internal use only.
*
* @param {?} changes A object of key/value pairs for the set of changed inputs.
* @return {?}
*/
}, {
key: "ngOnChanges",
value: function ngOnChanges(changes) {
if (!this._added) this._setUpControl();
if (isPropertyUpdated(changes, this.viewModel)) {
_ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);
this.viewModel = this.model;
this.formDirective.updateModel(this, this.model);
}
}
/**
* \@description
* Lifecycle method called before the directive's instance is destroyed. For internal use only.
* @return {?}
*/
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
if (this.formDirective) {
this.formDirective.removeControl(this);
}
}
/**
* \@description
* Sets the new value for the view model and emits an `ngModelChange` event.
*
* @param {?} newValue The new value for the view model.
* @return {?}
*/
}, {
key: "viewToModelUpdate",
value: function viewToModelUpdate(newValue) {
this.viewModel = newValue;
this.update.emit(newValue);
}
/**
* \@description
* Returns an array that represents the path from the top-level form to this control.
* Each index is the string name of the control on that level.
* @return {?}
*/
}, {
key: "path",
get: function get() {
return controlPath(this.name == null ? this.name : this.name.toString(),
/** @type {?} */
this._parent);
}
/**
* \@description
* The top-level directive for this group if present, otherwise null.
* @return {?}
*/
}, {
key: "formDirective",
get: function get() {
return this._parent ? this._parent.formDirective : null;
}
/**
* \@description
* Synchronous validator function composed of all the synchronous validators
* registered with this directive.
* @return {?}
*/
}, {
key: "validator",
get: function get() {
return composeValidators(this._rawValidators);
}
/**
* \@description
* Async validator function composed of all the async validators registered with this
* directive.
* @return {?}
*/
}, {
key: "asyncValidator",
get: function get() {
return (
/** @type {?} */
composeAsyncValidators(this._rawAsyncValidators)
);
}
/**
* @private
* @return {?}
*/
}, {
key: "_checkParentType",
value: function _checkParentType() {
if (!(this._parent instanceof FormGroupName) && this._parent instanceof AbstractFormGroupDirective) {
ReactiveErrors.ngModelGroupException();
} else if (!(this._parent instanceof FormGroupName) && !(this._parent instanceof FormGroupDirective) && !(this._parent instanceof FormArrayName)) {
ReactiveErrors.controlParentException();
}
}
/**
* @private
* @return {?}
*/
}, {
key: "_setUpControl",
value: function _setUpControl() {
this._checkParentType();
/** @type {?} */
this.control = this.formDirective.addControl(this);
if (this.control.disabled &&
/** @type {?} */
this.valueAccessor.setDisabledState) {
/** @type {?} */
/** @type {?} */
this.valueAccessor.setDisabledState(true);
}
this._added = true;
}
}]);
}(NgControl);
FormControlName.ɵfac = function FormControlName_Factory(t) {
return new (t || FormControlName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdirectiveInject */
"Vb"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));
};
FormControlName.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: FormControlName,
selectors: [["", "formControlName", ""]],
inputs: {
isDisabled: ["disabled", "isDisabled"],
name: ["formControlName", "name"],
model: ["ngModel", "model"]
},
outputs: {
update: "ngModelChange"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([controlNameBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"], _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵNgOnChangesFeature */
"Fb"]]
});
/**
* \@description
* Static property used to track whether any ngModel warnings have been sent across
* all instances of FormControlName. Used to support warning config of "once".
*
* \@internal
*/
FormControlName._ngModelWarningSentOnce = false;
return FormControlName;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives/validators.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* \@description
* An interface implemented by classes that perform synchronous validation.
*
* \@usageNotes
*
* ### Provide a custom validator
*
* The following example implements the `Validator` interface to create a
* validator directive with a custom error key.
*
* ```typescript
* \@Directive({
* selector: '[customValidator]',
* providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]
* })
* class CustomValidatorDirective implements Validator {
* validate(control: AbstractControl): ValidationErrors|null {
* return {'custom': true};
* }
* }
* ```
*
* \@publicApi
* @record
*/
function Validator() {}
if (false) {}
/**
* \@description
* An interface implemented by classes that perform asynchronous validation.
*
* \@usageNotes
*
* ### Provide a custom async validator directive
*
* The following example implements the `AsyncValidator` interface to create an
* async validator directive with a custom error key.
*
* ```typescript
* import { of as observableOf } from 'rxjs';
*
* \@Directive({
* selector: '[customAsyncValidator]',
* providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:
* true}]
* })
* class CustomAsyncValidatorDirective implements AsyncValidator {
* validate(control: AbstractControl): Observable {
* return observableOf({'custom': true});
* }
* }
* ```
*
* \@publicApi
* @record
*/
function AsyncValidator() {}
if (false) {}
/**
* \@description
* Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.
* @type {?}
*/
var REQUIRED_VALIDATOR = {
provide: NG_VALIDATORS,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return RequiredValidator;
}),
multi: true
};
/**
* \@description
* Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.
* @type {?}
*/
var CHECKBOX_REQUIRED_VALIDATOR = {
provide: NG_VALIDATORS,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return CheckboxRequiredValidator;
}),
multi: true
};
var RequiredValidator =
/*@__PURE__*/
function () {
var RequiredValidator =
/*#__PURE__*/
function () {
function RequiredValidator() {
_classCallCheck(this, RequiredValidator);
}
return _createClass2(RequiredValidator, [{
key: "required",
get:
/**
* \@description
* Tracks changes to the required attribute bound to this directive.
* @return {?}
*/
function get() {
return this._required;
}
/**
* @param {?} value
* @return {?}
*/
,
set: function set(value) {
this._required = value != null && value !== false && "".concat(value) !== 'false';
if (this._onChange) this._onChange();
}
/**
* \@description
* Method that validates whether the control is empty.
* Returns the validation result if enabled, otherwise null.
* @param {?} control
* @return {?}
*/
}, {
key: "validate",
value: function validate(control) {
return this.required ? Validators.required(control) : null;
}
/**
* \@description
* Registers a callback function to call when the validator inputs change.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnValidatorChange",
value: function registerOnValidatorChange(fn) {
this._onChange = fn;
}
}]);
}();
RequiredValidator.ɵfac = function RequiredValidator_Factory(t) {
return new (t || RequiredValidator)();
};
RequiredValidator.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: RequiredValidator,
selectors: [["", "required", "", "formControlName", "", 3, "type", "checkbox"], ["", "required", "", "formControl", "", 3, "type", "checkbox"], ["", "required", "", "ngModel", "", 3, "type", "checkbox"]],
hostVars: 1,
hostBindings: function RequiredValidator_HostBindings(rf, ctx) {
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵattribute */
"Ib"]("required", ctx.required ? "" : null);
}
},
inputs: {
required: "required"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([REQUIRED_VALIDATOR])]
});
return RequiredValidator;
}();
if (false) {}
var CheckboxRequiredValidator =
/*@__PURE__*/
function () {
var CheckboxRequiredValidator =
/*#__PURE__*/
function (_RequiredValidator) {
function CheckboxRequiredValidator() {
_classCallCheck(this, CheckboxRequiredValidator);
return _callSuper(this, CheckboxRequiredValidator, arguments);
}
_inherits(CheckboxRequiredValidator, _RequiredValidator);
return _createClass2(CheckboxRequiredValidator, [{
key: "validate",
value:
/**
* \@description
* Method that validates whether or not the checkbox has been checked.
* Returns the validation result if enabled, otherwise null.
* @param {?} control
* @return {?}
*/
function validate(control) {
return this.required ? Validators.requiredTrue(control) : null;
}
}]);
}(RequiredValidator);
CheckboxRequiredValidator.ɵfac = function CheckboxRequiredValidator_Factory(t) {
return ɵCheckboxRequiredValidator_BaseFactory(t || CheckboxRequiredValidator);
};
CheckboxRequiredValidator.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: CheckboxRequiredValidator,
selectors: [["input", "type", "checkbox", "required", "", "formControlName", ""], ["input", "type", "checkbox", "required", "", "formControl", ""], ["input", "type", "checkbox", "required", "", "ngModel", ""]],
hostVars: 1,
hostBindings: function CheckboxRequiredValidator_HostBindings(rf, ctx) {
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵattribute */
"Ib"]("required", ctx.required ? "" : null);
}
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([CHECKBOX_REQUIRED_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵInheritDefinitionFeature */
"Eb"]]
});
return CheckboxRequiredValidator;
}();
var ɵCheckboxRequiredValidator_BaseFactory =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵgetInheritedFactory */
"cc"](CheckboxRequiredValidator);
/**
* \@description
* Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.
* @type {?}
*/
var EMAIL_VALIDATOR = {
provide: NG_VALIDATORS,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return EmailValidator;
}),
multi: true
};
var EmailValidator =
/*@__PURE__*/
function () {
var EmailValidator =
/*#__PURE__*/
function () {
function EmailValidator() {
_classCallCheck(this, EmailValidator);
}
return _createClass2(EmailValidator, [{
key: "email",
set:
/**
* \@description
* Tracks changes to the email attribute bound to this directive.
* @param {?} value
* @return {?}
*/
function set(value) {
this._enabled = value === '' || value === true || value === 'true';
if (this._onChange) this._onChange();
}
/**
* \@description
* Method that validates whether an email address is valid.
* Returns the validation result if enabled, otherwise null.
* @param {?} control
* @return {?}
*/
}, {
key: "validate",
value: function validate(control) {
return this._enabled ? Validators.email(control) : null;
}
/**
* \@description
* Registers a callback function to call when the validator inputs change.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnValidatorChange",
value: function registerOnValidatorChange(fn) {
this._onChange = fn;
}
}]);
}();
EmailValidator.ɵfac = function EmailValidator_Factory(t) {
return new (t || EmailValidator)();
};
EmailValidator.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: EmailValidator,
selectors: [["", "email", "", "formControlName", ""], ["", "email", "", "formControl", ""], ["", "email", "", "ngModel", ""]],
inputs: {
email: "email"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([EMAIL_VALIDATOR])]
});
return EmailValidator;
}();
if (false) {}
/**
* \@description
* A function that receives a control and synchronously returns a map of
* validation errors if present, otherwise null.
*
* \@publicApi
* @record
*/
function ValidatorFn() {}
/**
* \@description
* A function that receives a control and returns a Promise or observable
* that emits validation errors if present, otherwise null.
*
* \@publicApi
* @record
*/
function AsyncValidatorFn() {}
/**
* \@description
* Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.
* @type {?}
*/
var MIN_LENGTH_VALIDATOR = {
provide: NG_VALIDATORS,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return MinLengthValidator;
}),
multi: true
};
var MinLengthValidator =
/*@__PURE__*/
function () {
var MinLengthValidator =
/*#__PURE__*/
function () {
function MinLengthValidator() {
_classCallCheck(this, MinLengthValidator);
}
return _createClass2(MinLengthValidator, [{
key: "ngOnChanges",
value:
/**
* \@description
* A lifecycle method called when the directive's inputs change. For internal use
* only.
*
* @param {?} changes A object of key/value pairs for the set of changed inputs.
* @return {?}
*/
function ngOnChanges(changes) {
if ('minlength' in changes) {
this._createValidator();
if (this._onChange) this._onChange();
}
}
/**
* \@description
* Method that validates whether the value meets a minimum length
* requirement. Returns the validation result if enabled, otherwise null.
* @param {?} control
* @return {?}
*/
}, {
key: "validate",
value: function validate(control) {
return this.minlength == null ? null : this._validator(control);
}
/**
* \@description
* Registers a callback function to call when the validator inputs change.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnValidatorChange",
value: function registerOnValidatorChange(fn) {
this._onChange = fn;
}
/**
* @private
* @return {?}
*/
}, {
key: "_createValidator",
value: function _createValidator() {
this._validator = Validators.minLength(typeof this.minlength === 'number' ? this.minlength : parseInt(this.minlength, 10));
}
}]);
}();
MinLengthValidator.ɵfac = function MinLengthValidator_Factory(t) {
return new (t || MinLengthValidator)();
};
MinLengthValidator.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: MinLengthValidator,
selectors: [["", "minlength", "", "formControlName", ""], ["", "minlength", "", "formControl", ""], ["", "minlength", "", "ngModel", ""]],
hostVars: 1,
hostBindings: function MinLengthValidator_HostBindings(rf, ctx) {
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵattribute */
"Ib"]("minlength", ctx.minlength ? ctx.minlength : null);
}
},
inputs: {
minlength: "minlength"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([MIN_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵNgOnChangesFeature */
"Fb"]]
});
return MinLengthValidator;
}();
if (false) {}
/**
* \@description
* Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.
* @type {?}
*/
var MAX_LENGTH_VALIDATOR = {
provide: NG_VALIDATORS,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return MaxLengthValidator;
}),
multi: true
};
var MaxLengthValidator =
/*@__PURE__*/
function () {
var MaxLengthValidator =
/*#__PURE__*/
function () {
function MaxLengthValidator() {
_classCallCheck(this, MaxLengthValidator);
}
return _createClass2(MaxLengthValidator, [{
key: "ngOnChanges",
value:
/**
* \@description
* A lifecycle method called when the directive's inputs change. For internal use
* only.
*
* @param {?} changes A object of key/value pairs for the set of changed inputs.
* @return {?}
*/
function ngOnChanges(changes) {
if ('maxlength' in changes) {
this._createValidator();
if (this._onChange) this._onChange();
}
}
/**
* \@description
* Method that validates whether the value exceeds
* the maximum length requirement.
* @param {?} control
* @return {?}
*/
}, {
key: "validate",
value: function validate(control) {
return this.maxlength != null ? this._validator(control) : null;
}
/**
* \@description
* Registers a callback function to call when the validator inputs change.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnValidatorChange",
value: function registerOnValidatorChange(fn) {
this._onChange = fn;
}
/**
* @private
* @return {?}
*/
}, {
key: "_createValidator",
value: function _createValidator() {
this._validator = Validators.maxLength(typeof this.maxlength === 'number' ? this.maxlength : parseInt(this.maxlength, 10));
}
}]);
}();
MaxLengthValidator.ɵfac = function MaxLengthValidator_Factory(t) {
return new (t || MaxLengthValidator)();
};
MaxLengthValidator.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: MaxLengthValidator,
selectors: [["", "maxlength", "", "formControlName", ""], ["", "maxlength", "", "formControl", ""], ["", "maxlength", "", "ngModel", ""]],
hostVars: 1,
hostBindings: function MaxLengthValidator_HostBindings(rf, ctx) {
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵattribute */
"Ib"]("maxlength", ctx.maxlength ? ctx.maxlength : null);
}
},
inputs: {
maxlength: "maxlength"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([MAX_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵNgOnChangesFeature */
"Fb"]]
});
return MaxLengthValidator;
}();
if (false) {}
/**
* \@description
* Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.
* @type {?}
*/
var PATTERN_VALIDATOR = {
provide: NG_VALIDATORS,
useExisting:
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* forwardRef */
"Z"])(
/**
* @return {?}
*/
function () {
return PatternValidator;
}),
multi: true
};
var PatternValidator =
/*@__PURE__*/
function () {
var PatternValidator =
/*#__PURE__*/
function () {
function PatternValidator() {
_classCallCheck(this, PatternValidator);
}
return _createClass2(PatternValidator, [{
key: "ngOnChanges",
value:
/**
* \@description
* A lifecycle method called when the directive's inputs change. For internal use
* only.
*
* @param {?} changes A object of key/value pairs for the set of changed inputs.
* @return {?}
*/
function ngOnChanges(changes) {
if ('pattern' in changes) {
this._createValidator();
if (this._onChange) this._onChange();
}
}
/**
* \@description
* Method that validates whether the value matches the
* the pattern requirement.
* @param {?} control
* @return {?}
*/
}, {
key: "validate",
value: function validate(control) {
return this._validator(control);
}
/**
* \@description
* Registers a callback function to call when the validator inputs change.
*
* @param {?} fn The callback function
* @return {?}
*/
}, {
key: "registerOnValidatorChange",
value: function registerOnValidatorChange(fn) {
this._onChange = fn;
}
/**
* @private
* @return {?}
*/
}, {
key: "_createValidator",
value: function _createValidator() {
this._validator = Validators.pattern(this.pattern);
}
}]);
}();
PatternValidator.ɵfac = function PatternValidator_Factory(t) {
return new (t || PatternValidator)();
};
PatternValidator.ɵdir =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineDirective */
"Qb"]({
type: PatternValidator,
selectors: [["", "pattern", "", "formControlName", ""], ["", "pattern", "", "formControl", ""], ["", "pattern", "", "ngModel", ""]],
hostVars: 1,
hostBindings: function PatternValidator_HostBindings(rf, ctx) {
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵattribute */
"Ib"]("pattern", ctx.pattern ? ctx.pattern : null);
}
},
inputs: {
pattern: "pattern"
},
features: [
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵProvidersFeature */
"Gb"]([PATTERN_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵNgOnChangesFeature */
"Fb"]]
});
return PatternValidator;
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/directives.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var SHARED_FORM_DIRECTIVES = [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator];
/** @type {?} */
var TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];
/** @type {?} */
var REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];
var ɵInternalFormsSharedModule =
/*@__PURE__*/
function () {
var ɵInternalFormsSharedModule =
/*#__PURE__*/
_createClass2(function ɵInternalFormsSharedModule() {
_classCallCheck(this, ɵInternalFormsSharedModule);
});
ɵInternalFormsSharedModule.ɵmod =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineNgModule */
"Tb"]({
type: ɵInternalFormsSharedModule
});
ɵInternalFormsSharedModule.ɵinj =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineInjector */
"Sb"]({
factory: function ɵInternalFormsSharedModule_Factory(t) {
return new (t || ɵInternalFormsSharedModule)();
}
});
return ɵInternalFormsSharedModule;
}();
/*@__PURE__*/
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵsetNgModuleScope */
"Qc"](ɵInternalFormsSharedModule, {
declarations: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator],
exports: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator]
});
})();
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/form_builder.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} options
* @return {?}
*/
function isAbstractControlOptions(options) {
return (
/** @type {?} */
options.asyncValidators !== undefined ||
/** @type {?} */
options.validators !== undefined ||
/** @type {?} */
options.updateOn !== undefined
);
}
var FormBuilder =
/*@__PURE__*/
function () {
var FormBuilder =
/*#__PURE__*/
function () {
function FormBuilder() {
_classCallCheck(this, FormBuilder);
}
return _createClass2(FormBuilder, [{
key: "group",
value:
/**
* \@description
* Construct a new `FormGroup` instance.
*
* @param {?} controlsConfig A collection of child controls. The key for each child is the name
* under which it is registered.
*
* @param {?=} options Configuration options object for the `FormGroup`. The object can
* have two shapes:
*
* 1) `AbstractControlOptions` object (preferred), which consists of:
* * `validators`: A synchronous validator function, or an array of validator functions
* * `asyncValidators`: A single async validator or array of async validator functions
* * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur' |
* submit')
*
* 2) Legacy configuration object, which consists of:
* * `validator`: A synchronous validator function, or an array of validator functions
* * `asyncValidator`: A single async validator or array of async validator functions
*
* @return {?}
*/
function group(controlsConfig) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
/** @type {?} */
var controls = this._reduceControls(controlsConfig);
/** @type {?} */
var validators = null;
/** @type {?} */
var asyncValidators = null;
/** @type {?} */
var updateOn = undefined;
if (options != null) {
if (isAbstractControlOptions(options)) {
// `options` are `AbstractControlOptions`
validators = options.validators != null ? options.validators : null;
asyncValidators = options.asyncValidators != null ? options.asyncValidators : null;
updateOn = options.updateOn != null ? options.updateOn : undefined;
} else {
// `options` are legacy form group options
validators = options['validator'] != null ? options['validator'] : null;
asyncValidators = options['asyncValidator'] != null ? options['asyncValidator'] : null;
}
}
return new FormGroup(controls, {
asyncValidators: asyncValidators,
updateOn: updateOn,
validators: validators
});
}
/**
* \@description
* Construct a new `FormControl` with the given state, validators and options.
*
* \@usageNotes
*
* ### Initialize a control as disabled
*
* The following example returns a control with an initial value in a disabled state.
*
*
*
* @param {?} formState Initializes the control with an initial state value, or
* with an object that contains both a value and a disabled status.
*
* @param {?=} validatorOrOpts A synchronous validator function, or an array of
* such functions, or an `AbstractControlOptions` object that contains
* validation functions and a validation trigger.
*
* @param {?=} asyncValidator A single async validator or array of async validator
* functions.
*
* @return {?}
*/
}, {
key: "control",
value: function control(formState, validatorOrOpts, asyncValidator) {
return new FormControl(formState, validatorOrOpts, asyncValidator);
}
/**
* Constructs a new `FormArray` from the given array of configurations,
* validators and options.
*
* @param {?} controlsConfig An array of child controls or control configs. Each
* child control is given an index when it is registered.
*
* @param {?=} validatorOrOpts A synchronous validator function, or an array of
* such functions, or an `AbstractControlOptions` object that contains
* validation functions and a validation trigger.
*
* @param {?=} asyncValidator A single async validator or array of async validator
* functions.
* @return {?}
*/
}, {
key: "array",
value: function array(controlsConfig, validatorOrOpts, asyncValidator) {
var _this41 = this;
/** @type {?} */
var controls = controlsConfig.map(
/**
* @param {?} c
* @return {?}
*/
/**
* @param {?} c
* @return {?}
*/
function (c) {
return _this41._createControl(c);
});
return new FormArray(controls, validatorOrOpts, asyncValidator);
}
/**
* \@internal
* @param {?} controlsConfig
* @return {?}
*/
}, {
key: "_reduceControls",
value: function _reduceControls(controlsConfig) {
var _this42 = this;
/** @type {?} */
var controls = {};
Object.keys(controlsConfig).forEach(
/**
* @param {?} controlName
* @return {?}
*/
/**
* @param {?} controlName
* @return {?}
*/
function (controlName) {
controls[controlName] = _this42._createControl(controlsConfig[controlName]);
});
return controls;
}
/**
* \@internal
* @param {?} controlConfig
* @return {?}
*/
}, {
key: "_createControl",
value: function _createControl(controlConfig) {
if (controlConfig instanceof FormControl || controlConfig instanceof FormGroup || controlConfig instanceof FormArray) {
return controlConfig;
} else if (Array.isArray(controlConfig)) {
/** @type {?} */
var value = controlConfig[0];
/** @type {?} */
var validator = controlConfig.length > 1 ? controlConfig[1] : null;
/** @type {?} */
var asyncValidator = controlConfig.length > 2 ? controlConfig[2] : null;
return this.control(value, validator, asyncValidator);
} else {
return this.control(controlConfig);
}
}
}]);
}();
FormBuilder.ɵfac = function FormBuilder_Factory(t) {
return new (t || FormBuilder)();
};
FormBuilder.ɵprov =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineInjectable */
"Rb"]({
token: FormBuilder,
factory: FormBuilder.ɵfac
});
return FormBuilder;
}();
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/version.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* \@publicApi
* @type {?}
*/
var VERSION =
/*@__PURE__*/
new _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* Version */
"T"]('9.0.7');
var FormsModule =
/*@__PURE__*/
function () {
var FormsModule =
/*#__PURE__*/
_createClass2(function FormsModule() {
_classCallCheck(this, FormsModule);
});
FormsModule.ɵmod =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineNgModule */
"Tb"]({
type: FormsModule
});
FormsModule.ɵinj =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineInjector */
"Sb"]({
factory: function FormsModule_Factory(t) {
return new (t || FormsModule)();
},
providers: [RadioControlRegistry],
imports: [ɵInternalFormsSharedModule]
});
return FormsModule;
}();
/*@__PURE__*/
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵsetNgModuleScope */
"Qc"](FormsModule, {
declarations: [NgModel, NgModelGroup, NgForm],
exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm]
});
})();
var ReactiveFormsModule =
/*@__PURE__*/
function () {
var ReactiveFormsModule =
/*#__PURE__*/
function () {
function ReactiveFormsModule() {
_classCallCheck(this, ReactiveFormsModule);
}
return _createClass2(ReactiveFormsModule, null, [{
key: "withConfig",
value:
/**
* \@description
* Provides options for configuring the reactive forms module.
*
* @param {?} opts An object of configuration options
* * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`
* binding is used with reactive form directives.
* @return {?}
*/
function withConfig(opts) {
return {
ngModule: ReactiveFormsModule,
providers: [{
provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,
useValue: opts.warnOnNgModelWithFormControl
}]
};
}
}]);
}();
ReactiveFormsModule.ɵmod =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineNgModule */
"Tb"]({
type: ReactiveFormsModule
});
ReactiveFormsModule.ɵinj =
/*@__PURE__*/
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineInjector */
"Sb"]({
factory: function ReactiveFormsModule_Factory(t) {
return new (t || ReactiveFormsModule)();
},
providers: [FormBuilder, RadioControlRegistry],
imports: [ɵInternalFormsSharedModule]
});
return ReactiveFormsModule;
}();
/*@__PURE__*/
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵsetNgModuleScope */
"Qc"](ReactiveFormsModule, {
declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName],
exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName]
});
})();
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/src/forms.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/public_api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: packages/forms/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
//# sourceMappingURL=forms.js.map
/***/
},
/***/
"4I5i":
/***/
function I5i(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return ArgumentOutOfRangeError;
});
var ArgumentOutOfRangeErrorImpl =
/*@__PURE__*/
function () {
function ArgumentOutOfRangeErrorImpl() {
Error.call(this);
this.message = 'argument out of range';
this.name = 'ArgumentOutOfRangeError';
return this;
}
ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);
return ArgumentOutOfRangeErrorImpl;
}();
var ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl; //# sourceMappingURL=ArgumentOutOfRangeError.js.map
/***/
},
/***/
"4q92":
/***/
function q92(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return DownloadDocumentsComponent;
});
/* harmony import */
var src_app_Shared_Enum_department_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("81W+");
/* harmony import */
var src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("T5CN");
/* harmony import */
var src_app_Shared_Model_app_setting__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("GAWG");
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("j672");
/* harmony import */
var src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Lexf");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fXoL");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("LYBR");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("sYmb");
/* harmony import */
var src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("t7Da");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("qVlC");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("jhN1");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("ofXK");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("3Pt+");
/* harmony import */
var ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("hzby");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("GmSP");
function DownloadDocumentsComponent_span_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1753 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r1753.translate.currentLang != "hi" ? ctx_r1753.pageTitle == null ? null : ctx_r1753.pageTitle.NameEnglish : ctx_r1753.pageTitle == null ? null : ctx_r1753.pageTitle.NameHindi);
}
}
function DownloadDocumentsComponent_span_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "Dept_Website_Links_txt"));
}
}
function DownloadDocumentsComponent_div_15_Template(rf, ctx) {
if (rf & 1) {
var _r1763 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "a", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function DownloadDocumentsComponent_div_15_Template_a_click_4_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r1763);
var ctx_r1762 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r1762.GetList();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](3, 2, "DocumentType_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](6, 4, "Find_Roll_Number_txt"), " ");
}
}
function DownloadDocumentsComponent_select_16_option_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "option", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r1765 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("value", item_r1765.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r1765.Text, " ");
}
}
function DownloadDocumentsComponent_select_16_Template(rf, ctx) {
if (rf & 1) {
var _r1767 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "select", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function DownloadDocumentsComponent_select_16_Template_select_ngModelChange_0_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r1767);
var ctx_r1766 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r1766.documentTypeCode = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2, "--Select--");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](3, DownloadDocumentsComponent_select_16_option_3_Template, 2, 2, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1756 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r1756.documentTypeCode);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r1756.ddlDownloadDocumentTypes);
}
}
var _c0 = function _c0() {
return {
containerClass: "theme-dark-blue",
dateInputFormat: "YYYY-MM-DD",
showWeekNumbers: false
};
};
function DownloadDocumentsComponent_div_17_Template(rf, ctx) {
if (rf & 1) {
var _r1770 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2, "Date of birth");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "input", 42, 43);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function DownloadDocumentsComponent_div_17_Template_input_ngModelChange_3_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r1770);
var ctx_r1769 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r1769.dob = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](6, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function DownloadDocumentsComponent_div_17_Template_i_click_6_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r1770);
var _r1768 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](4);
return _r1768.toggle();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var _r1768 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](4);
var ctx_r1757 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](5, 4, "DateOfBirth_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r1757.dob)("bsConfig", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpureFunction0 */
"Dc"](6, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵattribute */
"Ib"]("aria-expanded", _r1768.isOpen);
}
}
function DownloadDocumentsComponent_app_mini_loader_29_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function DownloadDocumentsComponent_div_30_Template(rf, ctx) {
if (rf & 1) {
var _r1773 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "h1", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "img", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("error", function DownloadDocumentsComponent_div_30_Template_img_error_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r1773);
var ctx_r1772 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r1772._commonService.onImageError($event, "assets/images/departmental_galley.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](8, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](9, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](10, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](11, "a", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](12, "i", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](15, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](16, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function DownloadDocumentsComponent_div_30_Template_button_click_16_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r1773);
var ctx_r1774 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r1774.onReset();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](18, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1759 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("src", (ctx_r1759.pageTitle == null ? null : ctx_r1759.pageTitle.ImagePath) || "assets/images/new-gov-orders.png", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](5, 7, "DownloadDocument_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](6, 9, "DownloadDocument_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](8, 11, "DownloadDocument_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("href", ctx_r1759.safeURL, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](14, 13, "ViewDocument_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](18, 15, "DownloadOtherDocument_txt"));
}
}
function DownloadDocumentsComponent_ng_container_45_tr_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](5, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](6, "a", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](7, "svg", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](8, "path", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](9, "path", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1778 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
var i_r1776 = ctx_r1778.index;
var item_r1775 = ctx_r1778.$implicit;
var ctx_r1777 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", (ctx_r1777.indexModel.Page - 1) * ctx_r1777.indexModel.PageSize + (i_r1776 + 1), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](item_r1775.Title);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("href", item_r1775.AttachmentList[0] == null ? null : item_r1775.AttachmentList[0].Path, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function DownloadDocumentsComponent_ng_container_45_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](1, DownloadDocumentsComponent_ng_container_45_tr_1_Template, 10, 3, "tr", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r1775 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", (item_r1775.AttachmentList[0] == null ? null : item_r1775.AttachmentList[0].Path) != null);
}
}
function DownloadDocumentsComponent_div_46_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "h5", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](3, 1, "NoRecordFound_txt"));
}
}
var DownloadDocumentsComponent =
/*@__PURE__*/
function () {
var DownloadDocumentsComponent =
/*#__PURE__*/
function () {
function DownloadDocumentsComponent(route, _commonService, translate, orderService, _distDeptService, sanitizer) {
_classCallCheck(this, DownloadDocumentsComponent);
this.route = route;
this._commonService = _commonService;
this.translate = translate;
this.orderService = orderService;
this._distDeptService = _distDeptService;
this.sanitizer = sanitizer;
this.indexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_3__[
/* IndexModel */
"d"]();
this.orderPublicPortal = [];
this.model = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_4__[
/* OrderEntryfrontModel */
"d"]();
this.groundWaterModel = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_4__[
/* DepartmentReportFilterWiseFilterModel */
"a"]();
this.documentTypeCode = '';
this.ddlDownloadDocumentTypes = [];
this.documentBaseUrl = 'http://103.203.136.205/';
this.folderName = '';
this.submenuCode = 0;
this.isGroundWaterDepartment = false;
this.isLoading = false;
this.rollNumberConfig = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, src_app_Shared_Enum_department_enum__WEBPACK_IMPORTED_MODULE_0__[
/* DepartmentEnum */
"a"].Khairthal_Tijara, [{
min: 1068,
max: 1107
}]), src_app_Shared_Enum_department_enum__WEBPACK_IMPORTED_MODULE_0__[
/* DepartmentEnum */
"a"].Alwar, [{
min: 5001,
max: 5029
}, {
min: 6001,
max: 6057
}]), src_app_Shared_Enum_department_enum__WEBPACK_IMPORTED_MODULE_0__[
/* DepartmentEnum */
"a"].Kotputli_Behror, [{
min: 1128,
max: 1198
}]), src_app_Shared_Enum_department_enum__WEBPACK_IMPORTED_MODULE_0__[
/* DepartmentEnum */
"a"].Karauli, [{
min: 25301,
max: 25321
}]);
}
return _createClass2(DownloadDocumentsComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this43 = this;
this.GetDDLList();
this.folderName = this._commonService.GetLocalStorageVal('FolderName');
this.deptCode = this._commonService.GetWebDistDeptCode();
if (this.deptCode == 76) {
//ground water department code.
this.isGroundWaterDepartment = true;
} // this.GetList();
// this.downloadFilePath = 'https://jankalyanFile.rajasthan.gov.in//Content/UploadFolder/Department/PDF/DEPTContactDetail/2022/Jan/DEPTContactDetail0ce4fce1-a0ed-4004-8f1e-d5440ebe812c.pdf';
// this.safeURL = this.sanitizer.bypassSecurityTrustResourceUrl(this.downloadFilePath);
this.route.paramMap.subscribe(function (params) {
_this43.pageTitle = undefined;
var _submenuCode = params.get('submenuCode');
_this43.submenuCode = Number(_submenuCode || 0);
_this43.getPageHeading();
});
}
}, {
key: "getPageHeading",
value: function getPageHeading() {
if (this.submenuCode > 0) {
this.getSubmenuDetail();
}
}
}, {
key: "getSubmenuDetail",
value: function getSubmenuDetail() {
var _this44 = this;
this._distDeptService.GetSubmenuDetail(this.submenuCode).subscribe(function (res) {
if (res.IsSuccess) {
var submenu = res.Data;
if (submenu) {
_this44.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_3__[
/* PageTitleModel */
"f"]();
_this44.pageTitle.NameEnglish = submenu.DisplayNameEnglish;
_this44.pageTitle.NameHindi = submenu.DisplayNameHindi;
_this44.pageTitle.ImagePath = submenu.IconImage;
_this44._commonService.SetWebTitle(_this44.translate.currentLang == 'hi' ? _this44.pageTitle.NameHindi : _this44.pageTitle.NameEnglish);
}
}
}, function (error) {});
}
}, {
key: "GetDDLList",
value: function GetDDLList() {
var _this45 = this;
this._distDeptService.GetAllDDL(src_app_Shared_Model_app_setting__WEBPACK_IMPORTED_MODULE_2__[
/* AppSetting */
"a"].ddlDownloadDocumentType).subscribe(function (data) {
if (data.IsSuccess) {
var ddlData = data.Data;
_this45.ddlDownloadDocumentTypes = ddlData.ddlDownloadDocumentType;
}
}, function (error) {});
}
}, {
key: "onSearch",
value: function onSearch() {
var _this46 = this;
debugger;
this.isLoading = true;
var config = this.rollNumberConfig[this.deptCode];
if (config) {
if (this.documentTypeCode && this.rollNo) {
var restrictedRollNo = Number(this.rollNo);
var isValid = config.some(function (range) {
return restrictedRollNo >= range.min && restrictedRollNo <= range.max;
}); // if (restrictedRollNo >= config.min && restrictedRollNo <= config.max) {
if (isValid) {
var docType = this.ddlDownloadDocumentTypes.find(function (x) {
return String(x.Value) == String(_this46.documentTypeCode);
});
if (docType) {
this.downloadFilePath = this.documentBaseUrl + '/' + this.folderName + '/E_Rolls/' + docType.OtherData.Description + '/' + "".concat(this.rollNo) + '.pdf';
this.safeURL = this.sanitizer.bypassSecurityTrustResourceUrl(this.downloadFilePath); //this.documentTypeCode =
this.rollNo = undefined;
this.isLoading = false; // this.onReset();
}
} else {
this.downloadFilePath = this.rollNo = undefined;
this.isLoading = false;
window.alert('Roll Number Not Found');
}
} else {
this.downloadFilePath = this.rollNo = undefined;
this.isLoading = false;
window.alert('Please Select Document Type & Roll Number');
}
} else {
if (this.isGroundWaterDepartment && this.rollNo && this.dob) {
this.groundWaterModel.RollNo = this.rollNo;
this.groundWaterModel.DOB = this.dob;
this._distDeptService.GetDepartmentReportFilterWise(this.groundWaterModel).subscribe(function (data) {
if (data.IsSuccess) {
if (data.Data) {
_this46.downloadFilePath = data.Data;
_this46.safeURL = data.Data;
_this46.isLoading = false;
} else {
_this46.downloadFilePath = _this46.dob = _this46.rollNo = undefined;
_this46.isLoading = false;
window.alert('No Record Found');
}
} else {
_this46.isLoading = false;
window.alert(data.Message);
}
}, function (error) {
_this46.isLoading = false;
console.error(error.message);
});
} else {
if (this.documentTypeCode && this.rollNo) {
var docType = this.ddlDownloadDocumentTypes.find(function (x) {
return String(x.Value) == String(_this46.documentTypeCode);
});
if (docType) {
this.downloadFilePath = this.documentBaseUrl + '/' + this.folderName + '/E_Rolls/' + docType.OtherData.Description + '/' + "".concat(this.rollNo) + '.pdf';
this.safeURL = this.sanitizer.bypassSecurityTrustResourceUrl(this.downloadFilePath); //this.documentTypeCode =
this.rollNo = undefined;
this.isLoading = false; // this.onReset();
}
} else {
this.downloadFilePath = this.rollNo = undefined;
this.isLoading = false;
window.alert('Please Enter Data');
}
}
} // this.isLoading = false;
}
}, {
key: "onReset",
value: function onReset() {
this.documentTypeCode = this.rollNo = this.downloadFilePath = this.safeURL = this.dob = undefined;
}
}, {
key: "GetList",
value: function GetList() {
var _this47 = this;
this.indexModel.PageSize = 10;
this.model.IndexModel = this.indexModel;
this.model.IndexModel.Page = 1;
this.model.IndexModel.PageSize = 101;
this.model.DepartmentCode = this._commonService.GetLocalStorageVal('websiteCode');
this.model.Type = src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_1__[
/* DownloaddocumentCodeEnum */
"b"].RecruitmentRelated;
this.model.SubTypeCode = src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_1__[
/* DownloaddocumentCodeEnum */
"b"].ExaminationRollNumber;
this.orderService.Get(this.model).subscribe(function (data) {
var _a, _b;
_this47.orderPublicPortal = [];
if (data.IsSuccess) {
_this47.orderPublicPortal = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.Data;
if (!_this47.indexModel.IsPostBack) {}
}
}, function (error) {
console.error(error.message);
});
}
}]);
}();
DownloadDocumentsComponent.ɵfac = function DownloadDocumentsComponent_Factory(t) {
return new (t || DownloadDocumentsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_7__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_9__[
/* OrderService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_10__[
/* DptDistrictWebsiteService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__[
/* DomSanitizer */
"b"]));
};
DownloadDocumentsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdefineComponent */
"Pb"]({
type: DownloadDocumentsComponent,
selectors: [["app-download-documents"]],
decls: 47,
vars: 23,
consts: [["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "container", "p-0"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [4, "ngIf"], [1, "inner-page", "pt-0"], [1, "orders_filter", 2, "max-width", "500px"], [1, "container-fluid"], [1, "row", "justify-content-center"], [1, "col-xl-12", "col-lg-12", "col-sm-12", "col-12", "wow", "fadeInUp"], ["class", "d-flex justify-content-between mb-3 align-items-center", 4, "ngIf"], ["class", "form-control", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["class", "calendar-position", 4, "ngIf"], [1, "text-white"], ["type", "text", "placeholder", "Roll No.", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "col-xl-12", "col-lg-12", "col-sm-12", "col-12", "mt-2", "wow", "fadeInUp"], [1, "d-flex", "orders_filter-btn-grp"], [1, "btn", "btn-success", "filter-btn", "fadeInUp", 2, "border", "none", 3, "click"], [1, "fas", "fa-search", "mr-2"], ["class", "container p-4", 4, "ngIf"], ["id", "Roll-Number-Modal", "tabindex", "-1", "role", "dialog", "aria-labelledby", "WriteCMTitle", "aria-hidden", "true", 1, "modal", "fade", "modal-dsign-sm", "modal-round-design"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered", "modal-lg"], [1, "modal-content"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "data-dismiss", "modal", "aria-label", "Close", 1, "close"], ["aria-hidden", "true"], [1, "modal-body"], [1, "table-responsive"], [1, "table"], [4, "ngFor", "ngForOf"], ["class", "col-lg-12", 4, "ngIf"], [1, "d-flex", "justify-content-between", "mb-3", "align-items-center"], [1, "m-0"], ["data-toggle", "modal", "data-target", "#Roll-Number-Modal", 1, "bg-danger", "text-white", "px-2", "py-1", 2, "border-radius", "13px", "cursor", "pointer", 3, "click"], [1, "form-control", 3, "ngModel", "ngModelChange"], ["value", "", "disabled", "", "selected", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "calendar-position"], ["type", "text", "bsDatepicker", "", 1, "form-control", 3, "placeholder", "ngModel", "bsConfig", "ngModelChange"], ["FromDate", "bsDatepicker"], [1, "fas", "fa-calendar-alt", "calendar-icon", 3, "click"], [1, "container", "p-4"], [1, "row"], [1, "col-xl-12", "col-lg-12", "mb-12"], [1, "title", "text-center", "mb-2"], [1, "img-fluid", "mr-10", 2, "max-width", "45px", 3, "src", "title", "alt", "error"], [1, "title", "text-center", "my-4"], ["target", "_blank", 1, "btn", "btn-success", 2, "border", "none", 3, "href"], [1, "fa", "fa-download"], [1, "d-flex", "align-items-center", "justify-content-between", "mb-3", 2, "text-decoration", "underline"], [1, "btn", "btn-link", "text-decoration-none", 2, "border", "none", 3, "click"], [2, "width", "50px"], ["target", "_blank", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "25", "height", "25", "fill", "red", "viewBox", "0 0 16 16", 1, "bi", "bi-file-earmark-pdf"], ["d", "M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z"], ["d", "M4.603 14.087a.81.81 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.68 7.68 0 0 1 1.482-.645 19.697 19.697 0 0 0 1.062-2.227 7.269 7.269 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a10.954 10.954 0 0 0 .98 1.686 5.753 5.753 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.856.856 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.712 5.712 0 0 1-.911-.95 11.651 11.651 0 0 0-1.997.406 11.307 11.307 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.793.793 0 0 1-.58.029zm1.379-1.901c-.166.076-.32.156-.459.238-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361.01.022.02.036.026.044a.266.266 0 0 0 .035-.012c.137-.056.355-.235.635-.572a8.18 8.18 0 0 0 .45-.606zm1.64-1.33a12.71 12.71 0 0 1 1.01-.193 11.744 11.744 0 0 1-.51-.858 20.801 20.801 0 0 1-.5 1.05zm2.446.45c.15.163.296.3.435.41.24.19.407.253.498.256a.107.107 0 0 0 .07-.015.307.307 0 0 0 .094-.125.436.436 0 0 0 .059-.2.095.095 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a3.876 3.876 0 0 0-.612-.053zM8.078 7.8a6.7 6.7 0 0 0 .2-.828c.031-.188.043-.343.038-.465a.613.613 0 0 0-.032-.198.517.517 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822.024.111.054.227.09.346z"], [1, "col-lg-12"], [1, "text-center", "red"]],
template: function DownloadDocumentsComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "nav", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "ol", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](7, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](8, DownloadDocumentsComponent_span_8_Template, 2, 1, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](9, DownloadDocumentsComponent_span_9_Template, 3, 3, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](10, "section", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](14, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](15, DownloadDocumentsComponent_div_15_Template, 7, 6, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](16, DownloadDocumentsComponent_select_16_Template, 4, 2, "select", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](17, DownloadDocumentsComponent_div_17_Template, 7, 7, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](18, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](19, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](21, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](22, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function DownloadDocumentsComponent_Template_input_ngModelChange_22_listener($event) {
return ctx.rollNo = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](23, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](24, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](25, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function DownloadDocumentsComponent_Template_button_click_25_listener() {
return ctx.onSearch();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](26, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](28, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](29, DownloadDocumentsComponent_app_mini_loader_29_Template, 1, 0, "app-mini-loader", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](30, DownloadDocumentsComponent_div_30_Template, 19, 17, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](31, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](32, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](33, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](34, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](35, "h5", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](36);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](37, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](38, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](39, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](40, "\xD7");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](41, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](42, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](43, "table", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](44, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](45, DownloadDocumentsComponent_ng_container_45_Template, 2, 1, "ng-container", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](46, DownloadDocumentsComponent_div_46_Template, 4, 3, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx._commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](6, 15, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isGroundWaterDepartment);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isGroundWaterDepartment);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isGroundWaterDepartment);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](21, 17, "RollNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.rollNo);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](28, 19, "Downloads_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.downloadFilePath);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](37, 21, "Find_Roll_Number_txt"), "");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.orderPublicPortal);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.orderPublicPortal.length == 0);
}
},
directives: [_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_12__[
/* NgIf */
"n"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* DefaultValueAccessor */
"b"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* NgControlStatus */
"m"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* NgModel */
"p"], _angular_common__WEBPACK_IMPORTED_MODULE_12__[
/* NgForOf */
"m"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* SelectControlValueAccessor */
"u"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* NgSelectOption */
"q"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* ɵangular_packages_forms_forms_x */
"w"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_14__[
/* BsDatepickerInputDirective */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_14__[
/* BsDatepickerDirective */
"a"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_15__[
/* MiniLoaderComponent */
"a"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__[
/* TranslatePipe */
"c"]],
styles: [".calendar-icon[_ngcontent-%COMP%]{position:absolute;top:46px;right:13px}.calendar-position[_ngcontent-%COMP%]{position:relative}"]
});
return DownloadDocumentsComponent;
}();
/***/
},
/***/
"5+tZ":
/***/
function tZ(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return mergeMap;
});
/* unused harmony export MergeMapOperator */
/* unused harmony export MergeMapSubscriber */
/* unused harmony export flatMap */
/* harmony import */
var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("lJxs");
/* harmony import */
var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Cfvw");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("zx2A");
function mergeMap(project, resultSelector) {
var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;
if (typeof resultSelector === 'function') {
return function (source) {
return source.pipe(mergeMap(function (a, i) {
return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__[
/* from */
"a"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__[
/* map */
"a"])(function (b, ii) {
return resultSelector(a, b, i, ii);
}));
}, concurrent));
};
} else if (typeof resultSelector === 'number') {
concurrent = resultSelector;
}
return function (source) {
return source.lift(new MergeMapOperator(project, concurrent));
};
}
var MergeMapOperator =
/*#__PURE__*/
function () {
function MergeMapOperator(project) {
var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.POSITIVE_INFINITY;
_classCallCheck(this, MergeMapOperator);
this.project = project;
this.concurrent = concurrent;
}
return _createClass2(MergeMapOperator, [{
key: "call",
value: function call(observer, source) {
return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));
}
}]);
}();
var MergeMapSubscriber =
/*#__PURE__*/
function (_innerSubscribe__WEBP) {
function MergeMapSubscriber(destination, project) {
var _this48;
var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;
_classCallCheck(this, MergeMapSubscriber);
_this48 = _callSuper(this, MergeMapSubscriber, [destination]);
_this48.project = project;
_this48.concurrent = concurrent;
_this48.hasCompleted = false;
_this48.buffer = [];
_this48.active = 0;
_this48.index = 0;
return _this48;
}
_inherits(MergeMapSubscriber, _innerSubscribe__WEBP);
return _createClass2(MergeMapSubscriber, [{
key: "_next",
value: function _next(value) {
if (this.active < this.concurrent) {
this._tryNext(value);
} else {
this.buffer.push(value);
}
}
}, {
key: "_tryNext",
value: function _tryNext(value) {
var result;
var index = this.index++;
try {
result = this.project(value, index);
} catch (err) {
this.destination.error(err);
return;
}
this.active++;
this._innerSub(result);
}
}, {
key: "_innerSub",
value: function _innerSub(ish) {
var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__[
/* SimpleInnerSubscriber */
"a"](this);
var destination = this.destination;
destination.add(innerSubscriber);
var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__[
/* innerSubscribe */
"c"])(ish, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
}
}, {
key: "_complete",
value: function _complete() {
this.hasCompleted = true;
if (this.active === 0 && this.buffer.length === 0) {
this.destination.complete();
}
this.unsubscribe();
}
}, {
key: "notifyNext",
value: function notifyNext(innerValue) {
this.destination.next(innerValue);
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
var buffer = this.buffer;
this.active--;
if (buffer.length > 0) {
this._next(buffer.shift());
} else if (this.active === 0 && this.hasCompleted) {
this.destination.complete();
}
}
}]);
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__[
/* SimpleOuterSubscriber */
"b"]);
var flatMap = mergeMap; //# sourceMappingURL=mergeMap.js.map
/***/
},
/***/
"56/0":
/***/
function _0(module, __webpack_exports__, __webpack_require__) {
"use strict"; // EXTERNAL MODULE: ./src/app/Shared/Model/app-setting.ts
var app_setting = __webpack_require__("GAWG"); // CONCATENATED MODULE: ./src/app/Shared/Enum/user-type.enum.ts
var UserTypeEnum =
/*@__PURE__*/
function (UserTypeEnum) {
UserTypeEnum["Administrator"] = "ADM";
UserTypeEnum["Minister"] = "MNSTR";
UserTypeEnum["CMOOfficer"] = "CMOO";
UserTypeEnum["CMOStaff"] = "CMOS";
UserTypeEnum["DivisionalCommissioner"] = "DCOM";
UserTypeEnum["Collector"] = "COLL";
UserTypeEnum["BDO"] = "BDO";
UserTypeEnum["Tehsildar"] = "TEHDR";
UserTypeEnum["Minister_MLA_MP"] = "MLAMP";
UserTypeEnum["TopLevelOfficer"] = "TLO";
UserTypeEnum["DepartmentNodalOfficer"] = "DPTO";
UserTypeEnum["DepartmentOfficer"] = "DPTS";
UserTypeEnum["DistrictNodalOfficer"] = "DLO";
UserTypeEnum["DistrictLevelOfficer"] = "DLS";
UserTypeEnum["BlockLevelOfficer"] = "BLO";
UserTypeEnum["SuperAdministrator"] = "SADM";
return UserTypeEnum;
}({}); // EXTERNAL MODULE: ./src/app/Shared/Model/dictionary.ts
var dictionary = __webpack_require__("ADQb"); // EXTERNAL MODULE: ./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js + 4 modules
var core = __webpack_require__("fXoL"); // EXTERNAL MODULE: ./src/app/Shared/Service/base.service.ts
var base_service = __webpack_require__("MLVi"); // CONCATENATED MODULE: ./src/app/Shared/Service/department-profile.service.ts
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return department_profile_service_DepartmentProfileService;
});
var department_profile_service_DepartmentProfileService =
/*@__PURE__*/
function () {
var DepartmentProfileService =
/*#__PURE__*/
function () {
function DepartmentProfileService(_baseService) {
_classCallCheck(this, DepartmentProfileService);
this._baseService = _baseService;
}
return _createClass2(DepartmentProfileService, [{
key: "GetList",
value: function GetList(model) {
var excludeEntryType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var isBase64Files = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
return this._baseService.post(app_setting["a"
/* AppSetting */
].GetDepartmentProfileListurl + "?excludeEntryType=" + excludeEntryType + "&isBase64Files=" + isBase64Files, model);
}
}, {
key: "GetOtherLinkList",
value: function GetOtherLinkList(catCode) {
return this._baseService.get(app_setting["a"
/* AppSetting */
].GetOtherLinkListurl + catCode);
}
}, {
key: "GetContactList",
value: function GetContactList(model) {
return this._baseService.post(app_setting["a"
/* AppSetting */
].GetDepartmentContactListurl, model);
}
}, {
key: "GetUserContactList",
value: function GetUserContactList(model) {
model.UserType = UserTypeEnum.DepartmentNodalOfficer + "," + UserTypeEnum.DistrictNodalOfficer;
return this._baseService.post(app_setting["a"
/* AppSetting */
].GetAllUserDetailListurl, model);
}
}, {
key: "GetAndSetVisitorCount",
value: function GetAndSetVisitorCount(DepartmentCode) {
return this._baseService.get(app_setting["a"
/* AppSetting */
].GetAndSetVisitorCount + DepartmentCode);
}
}, {
key: "GetById",
value: function GetById(id) {}
}, {
key: "GetPrabhariMantriDetail",
value: function GetPrabhariMantriDetail(deptCode) {
return this._baseService.get(app_setting["a"
/* AppSetting */
].GetPrabhariMantriDetailUrl + deptCode);
}
}, {
key: "GetDepartmentPageDetail",
value: function GetDepartmentPageDetail(deptCode, lookupCode, pageCode) {
var param = new dictionary["a"
/* Dictionary */
]();
param.Add("deptCode", deptCode);
param.Add("lookupCode", lookupCode);
param.Add("pageCode", pageCode);
return this._baseService.get(app_setting["a"
/* AppSetting */
].GetDepartmentPageDetailUrl, param);
}
}, {
key: "GetIsAuthenticationRequired",
value: function GetIsAuthenticationRequired(deptCode, lookupCode, pageCode) {
var param = new dictionary["a"
/* Dictionary */
]();
param.Add("deptCode", deptCode);
param.Add("lookupCode", lookupCode);
param.Add("pageCode", pageCode);
return this._baseService.get(app_setting["a"
/* AppSetting */
].GetIsAuthenticationRequiredUrl, param);
}
}]);
}();
DepartmentProfileService.ɵfac = function DepartmentProfileService_Factory(t) {
return new (t || DepartmentProfileService)(core["ec"
/* ɵɵinject */
](base_service["a"
/* BaseService */
]));
};
DepartmentProfileService.ɵprov = core["Rb"
/* ɵɵdefineInjectable */
]({
token: DepartmentProfileService,
factory: DepartmentProfileService.ɵfac,
providedIn: 'root'
});
return DepartmentProfileService;
}();
/***/
},
/***/
"5TL6":
/***/
function TL6(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return JankalyanCategoryAndEntryTypeComponent;
});
/* harmony import */
var src_app_Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9h9k");
/* harmony import */
var src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("T5CN");
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("j672");
/* harmony import */
var src_app_Shared_Model_department_view_model_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("MZWM");
/* harmony import */
var src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Lexf");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("AytR");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("fXoL");
/* harmony import */
var src_app_Shared_Service_department_profile_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("56/0");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("jhN1");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("t7Da");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("LYBR");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("qVlC");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("ofXK");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("GmSP");
/* harmony import */
var src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("/9+q");
/* harmony import */
var ngx_pagination__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("oOf3");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("3Pt+");
function JankalyanCategoryAndEntryTypeComponent_span_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1663 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r1663.translate.currentLang != "hi" ? ctx_r1663.pageTitle == null ? null : ctx_r1663.pageTitle.NameEnglish : ctx_r1663.pageTitle == null ? null : ctx_r1663.pageTitle.NameHindi);
}
}
function JankalyanCategoryAndEntryTypeComponent_span_10_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function JankalyanCategoryAndEntryTypeComponent_span_14_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1665 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r1665.translate.currentLang != "hi" ? ctx_r1665.pageTitle == null ? null : ctx_r1665.pageTitle.NameEnglish : ctx_r1665.pageTitle == null ? null : ctx_r1665.pageTitle.NameHindi);
}
}
function JankalyanCategoryAndEntryTypeComponent_span_15_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_16_div_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](2, "img", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1671 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", ctx_r1671.dataModel == null ? null : ctx_r1671.dataModel.ImageURL, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r1671.pageTitle ? ctx_r1671.translate.currentLang != "hi" ? ctx_r1671.pageTitle == null ? null : ctx_r1671.pageTitle.NameEnglish : ctx_r1671.pageTitle == null ? null : ctx_r1671.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r1671.pageTitle ? ctx_r1671.translate.currentLang != "hi" ? ctx_r1671.pageTitle == null ? null : ctx_r1671.pageTitle.NameEnglish : ctx_r1671.pageTitle == null ? null : ctx_r1671.pageTitle.NameHindi : " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_16_div_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "i", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1672 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 2, "ShowPDF_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("href", ctx_r1672.dataModel == null ? null : ctx_r1672.dataModel.PDFURL, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_16_div_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](2, "p", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1673 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("innerHTML", ctx_r1673.translate.currentLang == "hi" ? (ctx_r1673.dataModel == null ? null : ctx_r1673.dataModel.DetailsInHindi) ? ctx_r1673.sanitizer.bypassSecurityTrustHtml(ctx_r1673.dataModel == null ? null : ctx_r1673.dataModel.DetailsInHindi) : ctx_r1673.sanitizer.bypassSecurityTrustHtml(ctx_r1673.dataModel == null ? null : ctx_r1673.dataModel.Details) : ctx_r1673.sanitizer.bypassSecurityTrustHtml(ctx_r1673.dataModel == null ? null : ctx_r1673.dataModel.Details), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeHtml */
"Nc"]);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_16_iframe_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](0, "iframe", 32);
}
if (rf & 2) {
var ctx_r1674 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("src", ctx_r1674.dataModel == null ? null : ctx_r1674.dataModel.PDFURL, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeResourceUrl */
"Oc"]);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_16_div_10_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](1, "iframe", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1675 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("src", ctx_r1675.dataModel.url, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeResourceUrl */
"Oc"]);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_16_div_11_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "svg", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1676 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("href", ctx_r1676.dataModel == null ? null : ctx_r1676.dataModel.url, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](5, 2, "ViewMore_txt"), " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_16_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "section", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](3, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](4, JankalyanCategoryAndEntryTypeComponent_section_16_div_4_Template, 3, 3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](6, JankalyanCategoryAndEntryTypeComponent_section_16_div_6_Template, 4, 4, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](7, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, JankalyanCategoryAndEntryTypeComponent_section_16_div_8_Template, 3, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](9, JankalyanCategoryAndEntryTypeComponent_section_16_iframe_9_Template, 1, 1, "iframe", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](10, JankalyanCategoryAndEntryTypeComponent_section_16_div_10_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](11, JankalyanCategoryAndEntryTypeComponent_section_16_div_11_Template, 6, 4, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1667 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r1667.dataModel == null ? null : ctx_r1667.dataModel.ImageURL);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r1667.dataModel == null ? null : ctx_r1667.dataModel.DataTypeCode) != ctx_r1667.entryDataType.PDF && (ctx_r1667.dataModel == null ? null : ctx_r1667.dataModel.PDFURL));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r1667.dataModel == null ? null : ctx_r1667.dataModel.Details);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r1667.dataModel == null ? null : ctx_r1667.dataModel.DataTypeCode) == ctx_r1667.entryDataType.PDF);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r1667.dataModel && ctx_r1667.dataModel.DataTypeCode == ctx_r1667.entryDataType.IFrame);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r1667.dataModel == null ? null : ctx_r1667.dataModel.DataTypeCode) == ctx_r1667.entryDataType.URL);
}
}
function JankalyanCategoryAndEntryTypeComponent_app_mini_loader_17_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function JankalyanCategoryAndEntryTypeComponent_app_no_records_18_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 39);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_h1_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "h1", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1677 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate2 */
"Yc"](" ", ctx_r1677.translate.currentLang != "en" ? ctx_r1677.JankalyanEntrymodel == null ? null : ctx_r1677.JankalyanEntrymodel.DocumentTypeNameHindi : ctx_r1677.JankalyanEntrymodel == null ? null : ctx_r1677.JankalyanEntrymodel.DocumentTypeName, " - ", ctx_r1677.translate.currentLang != "en" ? ctx_r1677.JankalyanEntrymodel == null ? null : ctx_r1677.JankalyanEntrymodel.DocumenSubTypeNameNameHindi : ctx_r1677.JankalyanEntrymodel == null ? null : ctx_r1677.JankalyanEntrymodel.DocumenSubTypeName, " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_ng_container_24_span_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](4, " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 1, "OrderNo_txt"), " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_ng_container_24_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, JankalyanCategoryAndEntryTypeComponent_section_19_ng_container_24_span_1_Template, 5, 3, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r1678 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r1678.orderPublicPortal[0] == null ? null : ctx_r1678.orderPublicPortal[0].TypeDocumentNoMandatory) == ctx_r1678.orderValDocEnum.Yes);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_ng_template_25_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](3, " / ");
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "OrderNo_txt"), " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r1684 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r1687 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r1687.translate.currentLang != "en" ? item_r1684.TypeNameHindi : item_r1684.TypeName, " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_template_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "N/A");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_container_10_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r1684 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r1690 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r1690.translate.currentLang != "en" ? item_r1684.SubTypeNameHindi : item_r1684.SubTypeName, " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_template_11_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "N/A");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_strong_18_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r1684 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r1684.OrderNo, " ");
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_ng_container_1_li_1_span_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var i_r1701 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2).index;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](i_r1701 + 1);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "li", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "i", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](6, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_ng_container_1_li_1_span_6_Template, 2, 1, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var attachment_r1700 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
var item_r1684 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", attachment_r1700.Path, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](5, 3, "Downloads_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1684.AttachmentList.length > 1);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_ng_container_1_li_1_Template, 7, 5, "li", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var attachment_r1700 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", attachment_r1700.Path || undefined != undefined && attachment_r1700.IsAnnexure == false);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "ul", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_ng_container_1_Template, 2, 1, "ng-container", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r1684 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", item_r1684.AttachmentList);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_ng_container_1_li_1_span_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var i_r1710 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2).index;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](i_r1710 + 1);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
var _r1716 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "li", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("click", function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_ng_container_1_li_1_Template_a_click_1_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r1716);
var attachment_r1709 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
var group_r1686 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2).$implicit;
var ctx_r1714 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r1714.onDownload(attachment_r1709.Path, group_r1686.Id);
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "i", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](6, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_ng_container_1_li_1_span_6_Template, 2, 1, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r1684 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](5, 2, "Downloads_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1684.AttachmentList.length > 1);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_ng_container_1_li_1_Template, 7, 4, "li", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var attachment_r1709 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", attachment_r1709.Path || undefined != undefined && attachment_r1709.IsAnnexure == true);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "ul", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_ng_container_1_Template, 2, 1, "ng-container", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r1684 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", item_r1684.AttachmentList);
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "tr", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](5, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_container_5_Template, 3, 1, "ng-container", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](6, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_template_6_Template, 2, 0, "ng-template", null, 61, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](9, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](10, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_container_10_Template, 2, 1, "ng-container", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](11, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ng_template_11_Template, 2, 0, "ng-template", null, 62, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](14, "strong", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](16, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](17, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](18, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_strong_18_Template, 2, 1, "strong", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](19, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](20, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](22, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](24, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](25, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_25_Template, 2, 1, "ul", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](26, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_ul_26_Template, 2, 1, "ul", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](27, "a", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](29, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r1684 = ctx.$implicit;
var i_r1685 = ctx.index;
var group_r1686 = ctx.$implicit;
var _r1688 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](7);
var _r1691 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](12);
var ctx_r1681 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", (ctx_r1681.orderFilterModel.IndexModel.Page - 1) * ctx_r1681.orderFilterModel.IndexModel.PageSize + (i_r1685 + 1), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1684.TypeName || item_r1684.TypeNameHindi)("ngIfElse", _r1688);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1684.SubTypeName || item_r1684.SubTypeNameHindi)("ngIfElse", _r1691);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind2 */
"pc"](16, 13, item_r1684.Date, ctx_r1681.DateFormat));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1684.TypeDocumentNoMandatory == ctx_r1681.orderValDocEnum.Yes);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](item_r1684.Title);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r1681.translate.currentLang != "en" ? item_r1684.DepartmentTitleHindi ? item_r1684.DepartmentTitleHindi : item_r1684.DepartmentTitle : item_r1684.DepartmentTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1684.AttachmentList.length > 0 && item_r1684.IsOldOrder == true && item_r1684.IsAnnexure == false);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r1684.AttachmentList.length > 0 && item_r1684.IsOldOrder == false && item_r1684.IsAnnexure == true);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate1 */
"vc"]("routerLink", "/order/detail/", group_r1686.Id, "");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](29, 16, "ViewDetail_txt"));
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_select_40_Template(rf, ctx) {
if (rf & 1) {
var _r1721 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "select", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("change", function JankalyanCategoryAndEntryTypeComponent_section_19_select_40_Template_select_change_0_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r1721);
var ctx_r1720 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r1720.changePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "option", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](5, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](6, "option", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](7, "25");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](8, "option", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](9, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](10, "option", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](11, "100");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1682 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r1682.totalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 2, "All_txt"));
}
}
function JankalyanCategoryAndEntryTypeComponent_section_19_Template(rf, ctx) {
if (rf & 1) {
var _r1723 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "section", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](4, JankalyanCategoryAndEntryTypeComponent_section_19_h1_4_Template, 2, 2, "h1", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](6, "table", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](9, "th", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](11, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](12, "th", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](13, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](15, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](16, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](18, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](19, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](20, "strong", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](22, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](23, "th", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](24, JankalyanCategoryAndEntryTypeComponent_section_19_ng_container_24_Template, 2, 1, "ng-container", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](25, JankalyanCategoryAndEntryTypeComponent_section_19_ng_template_25_Template, 4, 3, "ng-template", null, 52, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](27, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](28, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](30, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](31, "th", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](33, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](34, "th", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](35);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](36, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](37, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](38, JankalyanCategoryAndEntryTypeComponent_section_19_tr_38_Template, 30, 18, "tr", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](39, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](40, JankalyanCategoryAndEntryTypeComponent_section_19_select_40_Template, 12, 4, "select", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](41, "pagination-controls", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("pageChange", function JankalyanCategoryAndEntryTypeComponent_section_19_Template_pagination_controls_pageChange_41_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r1723);
var ctx_r1722 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r1722.getNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](42, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](43, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var _r1679 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](26);
var ctx_r1670 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r1670.JankalyanEntrymodel == null ? null : ctx_r1670.JankalyanEntrymodel.DocumentTypeName) && (ctx_r1670.JankalyanEntrymodel == null ? null : ctx_r1670.JankalyanEntrymodel.DocumenSubTypeNameNameHindi));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](11, 14, "SrNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](15, 16, "Type_txt"), " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](18, 18, "SubType_txt"), " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](22, 20, "DateofIssue_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r1670.orderFilterModel.Type > 0)("ngIfElse", _r1679);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](30, 22, "Title_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](33, 24, "Department_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](36, 26, "Documents_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r1670.orderPublicPortal);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r1670.totalRecords > (ctx_r1670.orderFilterModel == null ? null : ctx_r1670.orderFilterModel.IndexModel == null ? null : ctx_r1670.orderFilterModel.IndexModel.PageSize));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](42, 28, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](43, 30, "Next_txt"));
}
}
var JankalyanCategoryAndEntryTypeComponent =
/*@__PURE__*/
function () {
var JankalyanCategoryAndEntryTypeComponent =
/*#__PURE__*/
function () {
function JankalyanCategoryAndEntryTypeComponent(departmentProfile, translate, sanitizer, _route, orderService, commonService, _distDeptService) {
_classCallCheck(this, JankalyanCategoryAndEntryTypeComponent);
this.departmentProfile = departmentProfile;
this.translate = translate;
this.sanitizer = sanitizer;
this._route = _route;
this.orderService = orderService;
this.commonService = commonService;
this._distDeptService = _distDeptService;
this.dataModel = new src_app_Shared_Model_department_view_model_model__WEBPACK_IMPORTED_MODULE_3__[
/* DepartmentProfileViewModel */
"d"]();
this.departmentProfileFilterModel = new src_app_Shared_Model_department_view_model_model__WEBPACK_IMPORTED_MODULE_3__[
/* DepartmentProfileFilterModel */
"c"]();
this.departmentRecordsExist = false;
this.departmentProfileTotalRecords = 0;
this.totalRecords = 0;
this.DateFormat = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__[
/* environment */
"a"].DateFormat;
this.orderValDocEnum = src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_1__[
/* OrderTypeValidationForDocNoEnum */
"f"];
this.orderPublicPortal = [];
this.orderFilterModel = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_4__[
/* OrderEntryfrontModel */
"d"]();
this.entryDataType = src_app_Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_0__[
/* SingleEntryDataType */
"e"];
this.departmentProfilePagerConfig = {
id: "departmentProfile-paging",
itemsPerPage: this.departmentProfileFilterModel.IndexModel.PageSize,
currentPage: this.departmentProfileFilterModel.IndexModel.Page,
totalItems: this.departmentProfileTotalRecords
};
this.IsLoading = true;
this.submenuCode = 0;
}
return _createClass2(JankalyanCategoryAndEntryTypeComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this49 = this;
//:deptCode/:catCode/:entryTypeCode/:lookupCode
this._route.paramMap.subscribe(function (params) {
var _a, _b;
_this49.pageTitle = undefined;
var _submenuCode = params.get("submenuCode");
_this49.submenuCode = Number(_submenuCode || 0);
var deptCode = _this49.commonService.GetWebDistDeptCode();
var param_deptCode = params.get("deptCode"); //if (param_deptCode) { deptCode = Number(param_deptCode); }
// this.orderFilterModel.DepartmentCode = deptCode;
// this.departmentProfileFilterModel.DepartmentCode = deptCode;
_this49.orderFilterModel.DepartmentCode = param_deptCode !== null && param_deptCode !== void 0 ? param_deptCode : deptCode;
_this49.departmentProfileFilterModel.DepartmentCode = param_deptCode !== null && param_deptCode !== void 0 ? param_deptCode : deptCode;
var param_catCode = params.get("catCode");
_this49.departmentProfileFilterModel.JankalyanCategoryCode = param_catCode !== null && param_catCode !== void 0 ? param_catCode : 0;
_this49.departmentProfileFilterModel.EntryTypeCode = (_a = params.get("entryTypeCode"), _a !== null && _a !== void 0 ? _a : 0);
_this49.departmentProfileFilterModel.LookupCode = (_b = params.get("lookupCode"), _b !== null && _b !== void 0 ? _b : 0);
if (param_catCode == src_app_Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_0__[
/* JankalyanCategoryEnum */
"b"].GIGWGuidelinesCode || param_catCode == src_app_Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_0__[
/* JankalyanCategoryEnum */
"b"].WebsitePolicyCode) {
_this49.departmentProfileFilterModel.DepartmentCode = deptCode;
}
_this49.getPageHeading();
_this49.getDepartmentProfileListData();
});
}
}, {
key: "getPageHeading",
value: function getPageHeading() {
var _this50 = this;
if (this.submenuCode && this.submenuCode > 0) {
this.getSubmenuDetail();
} else {
setTimeout(function () {
_this50.getEntryTypeDetail();
}, 10);
}
}
}, {
key: "getSubmenuDetail",
value: function getSubmenuDetail() {
var _this51 = this;
this._distDeptService.GetSubmenuDetail(this.submenuCode).subscribe(function (res) {
if (res.IsSuccess) {
var submenu = res.Data;
if (submenu) {
_this51.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_2__[
/* PageTitleModel */
"f"]();
_this51.pageTitle.NameEnglish = submenu.DisplayNameEnglish;
_this51.pageTitle.NameHindi = submenu.DisplayNameHindi;
_this51.pageTitle.ImagePath = submenu.IconImage;
_this51.commonService.SetWebTitle(_this51.translate.currentLang == 'hi' ? _this51.pageTitle.NameHindi : _this51.pageTitle.NameEnglish);
}
}
}, function (error) {});
}
}, {
key: "getEntryTypeDetail",
value: function getEntryTypeDetail() {
var _this52 = this;
this.orderPublicPortal = [];
this.IsLoading = true;
this.JankalyanEntrymodel = undefined;
if (this.departmentProfileFilterModel.EntryTypeCode) {
this._distDeptService.GetJankalyanEntryTypeDetail(Number(this.departmentProfileFilterModel.EntryTypeCode)).subscribe(function (res) {
if (res.IsSuccess) {
var cat = res.Data;
_this52.JankalyanEntrymodel = res.Data;
if (cat) {
_this52.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_2__[
/* PageTitleModel */
"f"]();
_this52.pageTitle.NameEnglish = cat.SubMenuNameEnglish;
_this52.pageTitle.NameHindi = cat.SubMenuNameHindi;
_this52.commonService.SetWebTitle(_this52.translate.currentLang == 'hi' ? _this52.pageTitle.NameHindi : _this52.pageTitle.NameEnglish);
if (_this52.JankalyanEntrymodel.GovernmentDocumentTypeCode && _this52.JankalyanEntrymodel.GovernmentDocumentSubTypeCode) {
_this52.GetGovDocList();
}
if (Number(_this52.departmentProfileFilterModel.LookupCode) > 0) {
_this52.getLookupTypeDetail();
}
}
}
}, function (error) {
console.error(error);
});
}
}
}, {
key: "getLookupTypeDetail",
value: function getLookupTypeDetail() {
var _this53 = this;
this._distDeptService.GetJankalyanLookupTypeDetail(Number(this.departmentProfileFilterModel.LookupCode)).subscribe(function (res) {
if (res.IsSuccess) {
_this53.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_2__[
/* PageTitleModel */
"f"]();
_this53.pageTitle.NameEnglish = res.Data.Lookup;
_this53.pageTitle.NameHindi = res.Data.NameHindi;
_this53.commonService.SetWebTitle(_this53.translate.currentLang == 'hi' ? _this53.pageTitle.NameHindi : _this53.pageTitle.NameEnglish);
}
}, function (error) {
console.error(error);
});
}
}, {
key: "getDepartmentProfileListData",
value: function getDepartmentProfileListData() {
var _this54 = this;
this.IsLoading = true;
this.dataModel = undefined;
this.departmentProfileFilterModel.IndexModel.PageSize = 1;
this.departmentProfile.GetList(this.departmentProfileFilterModel).subscribe(function (data) {
var _a, _b, _c, _d, _e, _f, _g, _h;
if (data.IsSuccess) {
_this54.departmentProfileModel = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.Data;
if (_this54.departmentProfileModel && _this54.departmentProfileModel.length == 1) {
_this54.dataModel = _this54.departmentProfileModel[0];
if (_this54.submenuCode == 0) {
_this54.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_2__[
/* PageTitleModel */
"f"]();
_this54.pageTitle.NameEnglish = _this54.pageTitle.NameEnglish ? _this54.pageTitle.NameEnglish : _this54.dataModel.EntryTypeName;
_this54.pageTitle.NameHindi = _this54.pageTitle.NameHindi ? _this54.pageTitle.NameHindi : _this54.dataModel.EntryTypeNameHindi;
_this54.pageTitle.ImagePath = _this54.pageTitle.ImagePath ? _this54.pageTitle.ImagePath : _this54.dataModel.ImageURL;
}
if (_this54.dataModel.PDFURL) {
_this54.dataModel.PDFURL = _this54.sanitizer.bypassSecurityTrustResourceUrl(_this54.dataModel.PDFURL);
}
if (((_c = _this54.dataModel) === null || _c === void 0 ? void 0 : _c.DataTypeCode) == _this54.entryDataType.URL && !((_d = _this54.dataModel) === null || _d === void 0 ? void 0 : _d.Details)) {
window.open((_e = _this54.dataModel) === null || _e === void 0 ? void 0 : _e.url, "_blank"); //window.location.href = this.dataModel?.url;
_this54.commonService.gotoPreviousPage();
}
if (((_f = _this54.dataModel) === null || _f === void 0 ? void 0 : _f.DataTypeCode) == _this54.entryDataType.IFrame && _this54.dataModel.url) {
_this54.dataModel.url = _this54.sanitizer.bypassSecurityTrustResourceUrl(_this54.dataModel.url);
}
} else {
_this54.dataModel = new src_app_Shared_Model_department_view_model_model__WEBPACK_IMPORTED_MODULE_3__[
/* DepartmentProfileViewModel */
"d"]();
}
if (!_this54.departmentProfileFilterModel.IndexModel.IsPostBack) {
_this54.departmentProfileTotalRecords = ((_h = (_g = data) === null || _g === void 0 ? void 0 : _g.Data) === null || _h === void 0 ? void 0 : _h.TotalRecords) || 0;
}
_this54.departmentProfileUpdatePageConfig();
} else {
_this54.dataModel = {};
}
_this54.IsLoading = false;
}, function (error) {
_this54.dataModel = {};
_this54.IsLoading = false; //console.error(error.message);
});
}
}, {
key: "departmentProfileGetNextPageRecord",
value: function departmentProfileGetNextPageRecord(page) {
this.departmentProfileFilterModel.IndexModel.IsPostBack = true;
this.departmentProfileFilterModel.IndexModel.Page = page;
this.getDepartmentProfileListData();
}
}, {
key: "departmentProfileChangePageSize",
value: function departmentProfileChangePageSize(value) {
this.departmentProfileFilterModel.IndexModel.IsPostBack = true;
this.departmentProfileFilterModel.IndexModel.PageSize = Number(value);
this.departmentProfileFilterModel.IndexModel.Page = 1;
this.getDepartmentProfileListData();
}
}, {
key: "departmentProfileUpdatePageConfig",
value: function departmentProfileUpdatePageConfig() {
this.departmentProfilePagerConfig.itemsPerPage = this.departmentProfileFilterModel.IndexModel.PageSize;
this.departmentProfilePagerConfig.currentPage = this.departmentProfileFilterModel.IndexModel.Page;
this.departmentProfilePagerConfig.totalItems = this.departmentProfileTotalRecords;
}
}, {
key: "onDownload",
value: function onDownload(url, orderNo) {
if (url || "" != "") {
var newWin = open("'url'", "_blank");
newWin.document.write('');
}
}
}, {
key: "GetGovDocList",
value: function GetGovDocList() {
var _this55 = this;
//this.orderFilterModel.IndexModel = new IndexModel();
this.orderFilterModel.IndexModel.Page = 1;
this.orderFilterModel.IndexModel.PageSize = 10;
this.orderFilterModel.Type = this.JankalyanEntrymodel.GovernmentDocumentTypeCode;
this.orderFilterModel.SubTypeCode = this.JankalyanEntrymodel.GovernmentDocumentSubTypeCode;
this.orderService.Get(this.orderFilterModel).subscribe(function (data) {
var _a, _b, _c, _d;
_this55.orderPublicPortal = [];
if (data.IsSuccess) {
_this55.orderPublicPortal = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.Data;
if (!_this55.orderFilterModel.IndexModel.IsPostBack) {
_this55.totalRecords = (_d = (_c = data) === null || _c === void 0 ? void 0 : _c.Data) === null || _d === void 0 ? void 0 : _d.TotalRecords;
}
} else {
_this55.totalRecords = 0;
}
}, function (error) {
console.error(error.message);
});
} //#region paging
}, {
key: "getNextPageRecord",
value: function getNextPageRecord(page) {
window.scroll(0, 0);
this.orderFilterModel.IndexModel.IsPostBack = true;
this.orderFilterModel.IndexModel.Page = page;
this.GetGovDocList();
}
}, {
key: "changePageSize",
value: function changePageSize(value) {
window.scroll(0, 0);
this.orderFilterModel.IndexModel.IsPostBack = true;
this.orderFilterModel.IndexModel.PageSize = Number(value);
this.orderFilterModel.IndexModel.Page = 1;
this.GetGovDocList();
}
}]);
}();
JankalyanCategoryAndEntryTypeComponent.ɵfac = function JankalyanCategoryAndEntryTypeComponent_Factory(t) {
return new (t || JankalyanCategoryAndEntryTypeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_department_profile_service__WEBPACK_IMPORTED_MODULE_7__[
/* DepartmentProfileService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__[
/* DomSanitizer */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_10__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_11__[
/* OrderService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_12__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_13__[
/* DptDistrictWebsiteService */
"a"]));
};
JankalyanCategoryAndEntryTypeComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdefineComponent */
"Pb"]({
type: JankalyanCategoryAndEntryTypeComponent,
selectors: [["app-jankalyan-category-and-entry-type"]],
decls: 20,
vars: 15,
consts: [["id", "sticky-anchor"], ["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "container", "p-0"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [4, "ngIf"], [1, "col-lg-12", "mt-5"], [1, "title", "text-center", "mb-1"], [1, "img-fluid", 3, "src", "title", "alt"], ["class", "inner-p age page-about page-editor-entry-design", 4, "ngIf"], [3, "showImage", 4, "ngIf"], ["class", "order-list", 4, "ngIf"], [1, "inner-p", "age", "page-about", "page-editor-entry-design"], [1, "container"], [1, "row"], [1, "col-lg-11", "right"], ["class", "page-file-download", 4, "ngIf"], [1, "col-lg-1", "left"], ["class", "col-lg-12", 4, "ngIf"], ["class", "pdf-Viewer", 3, "src", 4, "ngIf"], ["class", "col-lg-12 mb-4", 4, "ngIf"], ["class", "title text-center my-4", 4, "ngIf"], [1, "page-file-download"], ["target", "_blank", 1, "page-file-download-btn", 3, "href"], ["src", "assets/images/departmental_galley.png", 1, "img-fluid", 2, "max-width", "45px", 3, "title", "alt"], ["target", "_blank", 1, "page-file-download-btn", 3, "title", "href"], [1, "fas", "fa-file-pdf"], [1, "col-lg-12"], [1, "about-yajona-text"], [2, "text-align", "justify !important", 3, "innerHTML"], [1, "pdf-Viewer", 3, "src"], [1, "col-lg-12", "mb-4"], [1, "dpt-profile-iframe", 3, "src"], [1, "title", "text-center", "my-4"], ["target", "_blank", 1, "btn-link-big", 2, "border", "none", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "40", "height", "40", "fill", "#0074f1", "viewBox", "0 0 16 16", 1, "mr-2"], ["d", "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855A7.97 7.97 0 0 0 5.145 4H7.5V1.077zM4.09 4a9.267 9.267 0 0 1 .64-1.539 6.7 6.7 0 0 1 .597-.933A7.025 7.025 0 0 0 2.255 4H4.09zm-.582 3.5c.03-.877.138-1.718.312-2.5H1.674a6.958 6.958 0 0 0-.656 2.5h2.49zM4.847 5a12.5 12.5 0 0 0-.338 2.5H7.5V5H4.847zM8.5 5v2.5h2.99a12.495 12.495 0 0 0-.337-2.5H8.5zM4.51 8.5a12.5 12.5 0 0 0 .337 2.5H7.5V8.5H4.51zm3.99 0V11h2.653c.187-.765.306-1.608.338-2.5H8.5zM5.145 12c.138.386.295.744.468 1.068.552 1.035 1.218 1.65 1.887 1.855V12H5.145zm.182 2.472a6.696 6.696 0 0 1-.597-.933A9.268 9.268 0 0 1 4.09 12H2.255a7.024 7.024 0 0 0 3.072 2.472zM3.82 11a13.652 13.652 0 0 1-.312-2.5h-2.49c.062.89.291 1.733.656 2.5H3.82zm6.853 3.472A7.024 7.024 0 0 0 13.745 12H11.91a9.27 9.27 0 0 1-.64 1.539 6.688 6.688 0 0 1-.597.933zM8.5 12v2.923c.67-.204 1.335-.82 1.887-1.855.173-.324.33-.682.468-1.068H8.5zm3.68-1h2.146c.365-.767.594-1.61.656-2.5h-2.49a13.65 13.65 0 0 1-.312 2.5zm2.802-3.5a6.959 6.959 0 0 0-.656-2.5H12.18c.174.782.282 1.623.312 2.5h2.49zM11.27 2.461c.247.464.462.98.64 1.539h1.835a7.024 7.024 0 0 0-3.072-2.472c.218.284.418.598.597.933zM10.855 4a7.966 7.966 0 0 0-.468-1.068C9.835 1.897 9.17 1.282 8.5 1.077V4h2.355z"], [3, "showImage"], [1, "order-list"], [1, "container-fluid"], [1, "col-xl-12"], ["class", "title text-center", 4, "ngIf"], [1, "table-responsive"], [1, "table", "table-striped", "table-bordered", "table-new-design"], ["width", "80"], ["width", "30%"], [1, "badge", "badge-info"], [1, "text-orange"], ["width", "45%"], [4, "ngIf", "ngIfElse"], ["elseHeader", ""], ["width", "15%"], ["width", "200"], ["class", "hovercolor", 4, "ngFor", "ngForOf"], [1, "new-pagination-outer"], ["name", "example_length", "aria-controls", "example", "class", "form-control-sm", "style", "width:70px;", 3, "change", 4, "ngIf"], ["autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], [1, "title", "text-center"], [1, "hovercolor"], ["blankTypeName", ""], ["blankSTypeName", ""], ["class", "badge badge-info", 4, "ngIf"], ["class", "image-list", 4, "ngIf"], ["title", "detail", 1, "btn_detail", 3, "routerLink"], [1, "image-list"], [4, "ngFor", "ngForOf"], ["class", "", 4, "ngIf"], [1, ""], ["target", "_blank", 1, "btn", "btn-info", "btn-pdf", "pdfbtn", 3, "href"], [1, "fas", "fa-file-pdf", "mr-1"], ["href", "javascript:void(0);", 1, "btn", "btn-info", "btn-pdf", "pdfbtn", 3, "click"], ["name", "example_length", "aria-controls", "example", 1, "form-control-sm", 2, "width", "70px", 3, "change"], [3, "value"], ["selected", "", "value", "10"], ["value", "25"], ["value", "50"], ["value", "100"]],
template: function JankalyanCategoryAndEntryTypeComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "nav", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](3, "ol", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "a", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](8, "li", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](9, JankalyanCategoryAndEntryTypeComponent_span_9_Template, 2, 1, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](10, JankalyanCategoryAndEntryTypeComponent_span_10_Template, 2, 1, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](12, "h1", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](13, "img", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](14, JankalyanCategoryAndEntryTypeComponent_span_14_Template, 2, 1, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](15, JankalyanCategoryAndEntryTypeComponent_span_15_Template, 2, 1, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](16, JankalyanCategoryAndEntryTypeComponent_section_16_Template, 12, 6, "section", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](17, JankalyanCategoryAndEntryTypeComponent_app_mini_loader_17_Template, 1, 0, "app-mini-loader", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](18, JankalyanCategoryAndEntryTypeComponent_app_no_records_18_Template, 1, 1, "app-no-records", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](19, JankalyanCategoryAndEntryTypeComponent_section_19_Template, 44, 32, "section", 13);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx.commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 13, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("src", (ctx.pageTitle == null ? null : ctx.pageTitle.ImagePath) || "assets/images/requered-doc.png", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.dataModel);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.dataModel);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.dataModel && ctx.commonService.GetObjectLength(ctx.dataModel) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx.orderPublicPortal == null ? null : ctx.orderPublicPortal.length) > 0);
}
},
directives: [_angular_router__WEBPACK_IMPORTED_MODULE_10__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_14__[
/* NgIf */
"n"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_15__[
/* MiniLoaderComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_16__[
/* NoRecordsComponent */
"a"], _angular_common__WEBPACK_IMPORTED_MODULE_14__[
/* NgForOf */
"m"], ngx_pagination__WEBPACK_IMPORTED_MODULE_17__[
/* PaginationControlsComponent */
"c"], _angular_forms__WEBPACK_IMPORTED_MODULE_18__[
/* NgSelectOption */
"q"], _angular_forms__WEBPACK_IMPORTED_MODULE_18__[
/* ɵangular_packages_forms_forms_x */
"w"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__[
/* TranslatePipe */
"c"], _angular_common__WEBPACK_IMPORTED_MODULE_14__[
/* DatePipe */
"e"]],
styles: [".dpt-profile-iframe[_ngcontent-%COMP%]{width:100%;height:750px;border:1px solid #ddd;border-radius:4px}"]
});
return JankalyanCategoryAndEntryTypeComponent;
}();
/***/
},
/***/
"5hVl":
/***/
function hVl(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return NavBarComponent;
});
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("AytR");
/* harmony import */
var _Shared_Enum_e_booket_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("mlfa");
/* harmony import */
var _Shared_Model_dpt_district_website_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ylkv");
/* harmony import */
var _Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("RVz6");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("fXoL");
/* harmony import */
var ngx_cookie_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("b6Qw");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("sYmb");
/* harmony import */
var _Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("qVlC");
/* harmony import */
var _Shared_Service_department_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("6mOv");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("tyNb");
/* harmony import */
var _Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("LYBR");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("ofXK");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("3Pt+");
var _c0 = function _c0(a0) {
return {
"dropdown-toggle": a0
};
};
function NavBarComponent_li_22_a_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4550 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4551 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](3, _c0, item_r4550 == null ? null : item_r4550.IsSubMenu))("href", item_r4550 == null ? null : item_r4550.ExternalUrl, _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4551.translate.currentLang != "en" ? item_r4550 == null ? null : item_r4550.DisplayNameHindi : item_r4550 == null ? null : item_r4550.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_a_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4550 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4552 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](3, _c0, item_r4550 == null ? null : item_r4550.IsSubMenu))("routerLink", item_r4550 == null ? null : item_r4550.InternalUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4552.translate.currentLang != "en" ? item_r4550 == null ? null : item_r4550.DisplayNameHindi : item_r4550 == null ? null : item_r4550.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_a_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subItem_r4557 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4558 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](2, _c0, subItem_r4557 == null ? null : subItem_r4557.IsSubMenu));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4558.translate.currentLang != "en" ? subItem_r4557 == null ? null : subItem_r4557.DisplayNameHindi : subItem_r4557 == null ? null : subItem_r4557.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_a_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subItem_r4557 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4559 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](3, _c0, subItem_r4557 == null ? null : subItem_r4557.IsSubMenu))("routerLink", (subItem_r4557 == null ? null : subItem_r4557.IsSubMenu) ? undefined : subItem_r4557 == null ? null : subItem_r4557.Url);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4559.translate.currentLang != "en" ? subItem_r4557 == null ? null : subItem_r4557.DisplayNameHindi : subItem_r4557 == null ? null : subItem_r4557.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_a_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subItem_r4557 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4560 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](3, _c0, subItem_r4557 == null ? null : subItem_r4557.IsSubMenu))("href", (subItem_r4557 == null ? null : subItem_r4557.IsSubMenu) ? undefined : subItem_r4557 == null ? null : subItem_r4557.PDFAttachment, _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4560.translate.currentLang != "en" ? subItem_r4557 == null ? null : subItem_r4557.DisplayNameHindi : subItem_r4557 == null ? null : subItem_r4557.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_a_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subItem_r4557 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4561 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](3, _c0, subItem_r4557 == null ? null : subItem_r4557.IsSubMenu))("href", (subItem_r4557 == null ? null : subItem_r4557.IsSubMenu) ? undefined : subItem_r4557 == null ? null : subItem_r4557.RedirectionURL, _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4561.translate.currentLang != "en" ? subItem_r4557 == null ? null : subItem_r4557.DisplayNameHindi : subItem_r4557 == null ? null : subItem_r4557.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_a_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subItem_r4557 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4562 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](2, _c0, subItem_r4557 == null ? null : subItem_r4557.IsSubMenu));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4562.translate.currentLang != "en" ? subItem_r4557 == null ? null : subItem_r4557.DisplayNameHindi : subItem_r4557 == null ? null : subItem_r4557.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subSubItem_r4570 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4571 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](2, _c0, subSubItem_r4570 == null ? null : subSubItem_r4570.IsSubMenu));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4571.translate.currentLang != "en" ? subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameHindi : subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subSubItem_r4570 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4572 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("routerLink", subSubItem_r4570 == null ? null : subSubItem_r4570.Url);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4572.translate.currentLang != "en" ? subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameHindi : subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subSubItem_r4570 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4573 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("href", subSubItem_r4570 == null ? null : subSubItem_r4570.PDFAttachment, _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4573.translate.currentLang != "en" ? subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameHindi : subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subSubItem_r4570 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4574 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("href", subSubItem_r4570 == null ? null : subSubItem_r4570.RedirectionURL, _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4574.translate.currentLang != "en" ? subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameHindi : subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subSubItem_r4570 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4575 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4575.translate.currentLang != "en" ? subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameHindi : subSubItem_r4570 == null ? null : subSubItem_r4570.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subsubSubItem_r4583 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4584 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("routerLink", subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.Url);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4584.translate.currentLang != "en" ? subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameHindi : subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subsubSubItem_r4583 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4585 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("href", subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.PDFAttachment, _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4585.translate.currentLang != "en" ? subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameHindi : subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subsubSubItem_r4583 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4586 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("href", subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.RedirectionURL, _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4586.translate.currentLang != "en" ? subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameHindi : subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "a", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subsubSubItem_r4583 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4587 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4587.translate.currentLang != "en" ? subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameHindi : subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.DisplayNameEnglish, " ");
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_1_Template, 2, 2, "a", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](2, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_2_Template, 2, 2, "a", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](3, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_3_Template, 2, 2, "a", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](4, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_a_4_Template, 2, 1, "a", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subsubSubItem_r4583 = ctx.$implicit;
var ctx_r4582 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subsubSubItem_r4583.IsDisable && ctx_r4582.enumdata.DataEnteredInScreens == (subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subsubSubItem_r4583.IsDisable && ctx_r4582.enumdata.PDFFileUpload == (subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subsubSubItem_r4583.IsDisable && ctx_r4582.enumdata.URLOfSameWebsiteOtherWebsite == (subsubSubItem_r4583 == null ? null : subsubSubItem_r4583.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", subsubSubItem_r4583.IsDisable);
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "ul", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_li_1_Template, 5, 4, "li", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subSubItem_r4570 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4576 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r4576.getSubSubSubMenuList(subSubItem_r4570 == null ? null : subSubItem_r4570.Id));
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_1_Template, 2, 4, "a", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](2, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_2_Template, 2, 2, "a", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](3, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_3_Template, 2, 2, "a", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](4, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_4_Template, 2, 2, "a", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](5, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_a_5_Template, 2, 1, "a", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](6, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_ul_6_Template, 2, 1, "ul", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subSubItem_r4570 = ctx.$implicit;
var ctx_r4569 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subSubItem_r4570.IsDisable && ctx_r4569.enumdata.HasSubMenu == (subSubItem_r4570 == null ? null : subSubItem_r4570.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subSubItem_r4570.IsDisable && ctx_r4569.enumdata.DataEnteredInScreens == (subSubItem_r4570 == null ? null : subSubItem_r4570.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subSubItem_r4570.IsDisable && ctx_r4569.enumdata.PDFFileUpload == (subSubItem_r4570 == null ? null : subSubItem_r4570.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subSubItem_r4570.IsDisable && ctx_r4569.enumdata.URLOfSameWebsiteOtherWebsite == (subSubItem_r4570 == null ? null : subSubItem_r4570.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", subSubItem_r4570.IsDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4569.enumdata.HasSubMenu == (subSubItem_r4570 == null ? null : subSubItem_r4570.RedirectionManagementRadio));
}
}
function NavBarComponent_li_22_ul_3_li_1_ul_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "ul", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, NavBarComponent_li_22_ul_3_li_1_ul_6_li_1_Template, 7, 6, "li", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subItem_r4557 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4563 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r4563.getSubSubMenuList(subItem_r4557 == null ? null : subItem_r4557.SubMenuCode));
}
}
function NavBarComponent_li_22_ul_3_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "li", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, NavBarComponent_li_22_ul_3_li_1_a_1_Template, 2, 4, "a", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](2, NavBarComponent_li_22_ul_3_li_1_a_2_Template, 2, 5, "a", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](3, NavBarComponent_li_22_ul_3_li_1_a_3_Template, 2, 5, "a", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](4, NavBarComponent_li_22_ul_3_li_1_a_4_Template, 2, 5, "a", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](5, NavBarComponent_li_22_ul_3_li_1_a_5_Template, 2, 4, "a", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](6, NavBarComponent_li_22_ul_3_li_1_ul_6_Template, 2, 1, "ul", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var subItem_r4557 = ctx.$implicit;
var ctx_r4556 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subItem_r4557.IsDisable && ctx_r4556.enumdata.HasSubMenu == (subItem_r4557 == null ? null : subItem_r4557.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subItem_r4557.IsDisable && ctx_r4556.enumdata.DataEnteredInScreens == (subItem_r4557 == null ? null : subItem_r4557.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subItem_r4557.IsDisable && ctx_r4556.enumdata.PDFFileUpload == (subItem_r4557 == null ? null : subItem_r4557.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !subItem_r4557.IsDisable && ctx_r4556.enumdata.URLOfSameWebsiteOtherWebsite == (subItem_r4557 == null ? null : subItem_r4557.RedirectionManagementRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", subItem_r4557.IsDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", subItem_r4557 == null ? null : subItem_r4557.IsSubMenu);
}
}
function NavBarComponent_li_22_ul_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "ul", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, NavBarComponent_li_22_ul_3_li_1_Template, 7, 6, "li", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4550 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4553 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r4553.getSubMenuList(item_r4550 == null ? null : item_r4550.MainMenuCode));
}
}
var _c1 = function _c1(a0) {
return {
"dropdown": a0
};
};
function NavBarComponent_li_22_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "li", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, NavBarComponent_li_22_a_1_Template, 2, 5, "a", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](2, NavBarComponent_li_22_a_2_Template, 2, 5, "a", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](3, NavBarComponent_li_22_ul_3_Template, 2, 1, "ul", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4550 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](4, _c1, item_r4550 == null ? null : item_r4550.IsSubMenu));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4550 == null ? null : item_r4550.IsExternalUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !(item_r4550 == null ? null : item_r4550.IsExternalUrl));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4550 == null ? null : item_r4550.IsSubMenu);
}
}
function NavBarComponent_li_23_Template(rf, ctx) {
if (rf & 1) {
var _r4596 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](1, "a", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵlistener */
"ic"]("click", function NavBarComponent_li_23_Template_a_click_1_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r4596);
var ctx_r4595 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
return ctx_r4595.showOtherLinksBlock();
});
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](2, "svg", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](3, "path", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](5, 1, "RelativeLinks_txt"), " ");
}
}
function NavBarComponent_section_55_li_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](1, "a", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4598 = ctx.$implicit;
var ctx_r4597 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpropertyInterpolate1 */
"vc"]("href", "https://department.rajasthan.gov.in/home/dptHome/", item_r4598.DepartmentCode, "", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4597.translate.currentLang != "en" ? item_r4598 == null ? null : item_r4598.DepartmentTitleHindi : item_r4598 == null ? null : item_r4598.DepartmentTitle, " ");
}
}
function NavBarComponent_section_55_Template(rf, ctx) {
if (rf & 1) {
var _r4600 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "section", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](3, "a", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵlistener */
"ic"]("click", function NavBarComponent_section_55_Template_a_click_3_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r4600);
var ctx_r4599 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
return ctx_r4599.hideOtherLinksBlock();
});
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](4, "svg", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](5, "path", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](6, "path", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnamespaceHTML */
"kc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](7, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](8, NavBarComponent_section_55_li_8_Template, 3, 2, "li", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4548 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r4548.childDeptMenuList);
}
}
function NavBarComponent_div_56_Template(rf, ctx) {
if (rf & 1) {
var _r4602 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](1, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](2, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](3, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](4, "h5", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](7, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](8, "span", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](9, "\xD7");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](10, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](11, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](12, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](15, "input", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵlistener */
"ic"]("ngModelChange", function NavBarComponent_div_56_Template_input_ngModelChange_15_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r4602);
var ctx_r4601 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
return ctx_r4601.password = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](16, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](17, "button", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵlistener */
"ic"]("click", function NavBarComponent_div_56_Template_button_click_17_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r4602);
var ctx_r4603 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
return ctx_r4603.submit();
});
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](19, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](20, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](22, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4549 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](6, 5, "Ebooklet_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](14, 7, "EnterPassword_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r4549.password);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](19, 9, "SubmitButton_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](22, 11, "CloseButton_txt"), " ");
}
}
var NavBarComponent =
/*@__PURE__*/
function () {
var NavBarComponent =
/*#__PURE__*/
function () {
function NavBarComponent(_cookie, _elmentsList, translate, _dptDistrictWebsiteService, _departmentService, _route, _commonService) {
_classCallCheck(this, NavBarComponent);
this._cookie = _cookie;
this._elmentsList = _elmentsList;
this.translate = translate;
this._dptDistrictWebsiteService = _dptDistrictWebsiteService;
this._departmentService = _departmentService;
this._route = _route;
this._commonService = _commonService;
this.ebookletTypeEnum = _Shared_Enum_e_booket_enum__WEBPACK_IMPORTED_MODULE_1__[
/* EbookletTypeEnum */
"b"];
this.childDeptMenuList = [];
this.showMenu = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].IsCMISMenuVisible;
this.menuListModel = new _Shared_Model_dpt_district_website_model__WEBPACK_IMPORTED_MODULE_2__[
/* DepartmentMenuListModel */
"c"]();
this.enumdata = _Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_3__[
/* LookupEnum */
"a"];
this.isDistrict = false;
this.isDistrict = _commonService.IsDistrict();
}
return _createClass2(NavBarComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this56 = this;
//#region Get Department Menu List from Subject Behaviour
this._departmentService.getDeptMenuList().subscribe(function (data) {
if (data) {
_this56.menuListModel = data;
}
}); //#endregion
if (!this.isDistrict) {
this._commonService.updateMenu.subscribe(function () {
setTimeout(function () {
_this56.GetChildDepartmentMenus();
}, 0);
});
}
}
}, {
key: "submit",
value: function submit() {// if (this.password === environment.passWord) {
// this.password = '';
// $('#Select-Ebooklet').modal('show');
// $('#Ebooklet-password').modal('hide');
// this._cookie.set("ebookletAuthorized", '1', 1);
// } else {
// alert("Invalid password");
// this._cookie.set("ebookletAuthorized", '0', 1);
// }
}
}, {
key: "onClick",
value: function onClick(_element) {
if (_element.classList.contains("sub-menu-hover-item")) {
this._elmentsList.nativeElement.querySelectorAll('.sub-menu-hover-item').forEach(function (subMenu) {
subMenu.classList.remove("active");
});
_element.classList.add('active');
this._elmentsList.nativeElement.querySelectorAll('.main-menu').forEach(function (mainMenu) {
var item = mainMenu.parentElement.querySelectorAll("a.sub-menu-hover-item.active");
if (item.length > 0) {
mainMenu.classList.add("active");
} else {
mainMenu.classList.remove("active");
}
});
} else if (_element.classList.contains("main-menu")) {
var subMenuItems = _element.parentElement.querySelectorAll('.sub-menu-hover-item');
if (subMenuItems.length == 0) {
this._elmentsList.nativeElement.querySelectorAll('.sub-menu-hover-item').forEach(function (subMenu) {
subMenu.classList.remove("active");
});
this._elmentsList.nativeElement.querySelectorAll('.main-menu').forEach(function (mainMenu) {
mainMenu.classList.remove("active");
});
_element.classList.add('active');
}
}
}
}, {
key: "GetChildDepartmentMenus",
value: function GetChildDepartmentMenus() {
var _this57 = this;
var deptCode = this._commonService.GetWebDistDeptCode();
this._dptDistrictWebsiteService.GetChildDepartmentMenuList(deptCode).subscribe(function (response) {
if (response.IsSuccess) {
_this57.childDeptMenuList = response.Data;
}
}, function (error) {
console.error(error);
});
}
}, {
key: "getSubMenuList",
value: function getSubMenuList(mainMenuCode) {
return this.menuListModel.SubMenuList.filter(function (x) {
return x.DepartmentMainMenuCode == mainMenuCode;
});
}
}, {
key: "getSubSubMenuList",
value: function getSubSubMenuList(SubMenuCode) {
return this.menuListModel.SubSubMenuList.filter(function (x) {
return x.DepartmentSubMenuCode == SubMenuCode;
});
}
}, {
key: "getSubSubSubMenuList",
value: function getSubSubSubMenuList(SubSubMenuCode) {
return this.menuListModel.SubSubMenuList.filter(function (x) {
return x.DepartmentSubMenuCode == SubSubMenuCode;
});
} // onSkipToNavbar() {
// //this.openNav();
// this.skipperNavbar.nativeElement.focus();
// }
}, {
key: "openNav",
value: function openNav() {
var element = document.getElementById("mySidenav");
element.style.width = "520px";
setTimeout(function () {
element.classList.add('active');
}, 100);
}
}, {
key: "closeNav",
value: function closeNav() {
var element = document.getElementById("mySidenav");
if (element.classList.contains("active")) {
element.style.width = "0px";
element.classList.remove('active');
}
}
}, {
key: "showOtherLinksBlock",
value: function showOtherLinksBlock() {
var element = document.getElementById("card-mega-menu");
setTimeout(function () {
element.classList.add('active');
}, 100);
}
}, {
key: "hideOtherLinksBlock",
value: function hideOtherLinksBlock() {
var element = document.getElementById("card-mega-menu");
if (element.classList.contains("active")) {
element.classList.remove('active');
}
}
}]);
}();
NavBarComponent.ɵfac = function NavBarComponent_Factory(t) {
return new (t || NavBarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](ngx_cookie_service__WEBPACK_IMPORTED_MODULE_5__[
/* CookieService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ElementRef */
"o"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_7__[
/* DptDistrictWebsiteService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Service_department_service__WEBPACK_IMPORTED_MODULE_8__[
/* DepartmentService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_9__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_10__[
/* CommonService */
"a"]));
};
NavBarComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdefineComponent */
"Pb"]({
type: NavBarComponent,
selectors: [["app-nav-bar"]],
hostBindings: function NavBarComponent_HostBindings(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵlistener */
"ic"]("click", function NavBarComponent_click_HostBindingHandler($event) {
return ctx.onClick($event.target);
});
}
},
decls: 57,
vars: 14,
consts: [[1, "header-menu", "navbar", "navbar-expand-xl", "navbar-top"], ["href", "#", 1, "university-logo"], ["src", "assets/images/logo_sm.png", 3, "alt", "title"], [1, "logo_gov_tagline"], ["id", "mySidenav", 1, "container-fluid"], ["type", "button", "data-toggle", "collapse", "data-target", "#navbarSupportedContent", "aria-controls", "navbarSupportedContent", "aria-expanded", "false", "aria-label", "Toggle navigation", 1, "navbar-toggler"], [1, "navbar-toggler-icon"], [1, "bi", "bi-list"], ["id", "navbarSupportedContent", 1, "collapse", "navbar-collapse"], [1, "navbar-nav", "w-100", "justify-content-center"], [1, "li-mobile-menu-close"], ["href", "#", "data-toggle", "collapse", "data-target", "#navbarSupportedContent", 1, "mobile-menu-close"], [1, "bi", "bi-x-lg"], [1, "nav-item"], [1, "nav-link", 3, "routerLink"], [1, "fas", "fa-home", 2, "font-size", "20px"], ["class", "nav-item", 3, "ngClass", 4, "ngFor", "ngForOf"], ["class", "nav-item", 4, "ngIf"], ["id", "DownloadDocumentModal", "tabindex", "-1", "role", "dialog", "aria-labelledby", "WriteCMTitle", "aria-hidden", "true", 1, "modal", "fade", "modal-dsign-sm", "modal-round-design"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "data-dismiss", "modal", "aria-label", "Close", 1, "close"], ["aria-hidden", "true"], [1, "modal-body"], [1, "form-group"], ["type", "text", "placeholder", "Enter Text", 1, "form-control"], [1, "form-control"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-primary"], ["type", "button", "data-dismiss", "modal", 1, "btn", "btn-secondary"], ["id", "card-mega-menu", "class", "card-mega-menu", 4, "ngIf"], ["class", "modal fade modal-dsign-sm", "id", "Ebooklet-password", "tabindex", "-1", "role", "dialog", "aria-labelledby", "Booklet password", "aria-hidden", "true", 4, "ngIf"], [1, "nav-item", 3, "ngClass"], ["class", "nav-link", "target", "_blank", "id", "navbarDropdownMenuLink", "aria-haspopup", "true", "aria-expanded", "false", 3, "ngClass", "href", 4, "ngIf"], ["class", "nav-link", "id", "navbarDropdownMenuLink", "aria-haspopup", "true", "aria-expanded", "false", 3, "ngClass", "routerLink", 4, "ngIf"], ["class", "dropdown-menu", "aria-labelledby", "navbarDropdownMenuLink", 4, "ngIf"], ["target", "_blank", "id", "navbarDropdownMenuLink", "aria-haspopup", "true", "aria-expanded", "false", 1, "nav-link", 3, "ngClass", "href"], ["id", "navbarDropdownMenuLink", "aria-haspopup", "true", "aria-expanded", "false", 1, "nav-link", 3, "ngClass", "routerLink"], ["aria-labelledby", "navbarDropdownMenuLink", 1, "dropdown-menu"], ["class", "dropdown-submenu", 4, "ngFor", "ngForOf"], [1, "dropdown-submenu"], ["class", "dropdown-item", "tabindex", "1", "href", "javascript:void(0)", 3, "ngClass", 4, "ngIf"], ["class", "dropdown-item", "tabindex", "2", 3, "ngClass", "routerLink", 4, "ngIf"], ["class", "dropdown-item", "tabindex", "3", "target", "_blank", 3, "ngClass", "href", 4, "ngIf"], ["class", "dropdown-item", "tabindex", "4", "target", "_blank", 3, "ngClass", "href", 4, "ngIf"], ["class", "dropdown-item", "tabindex", "5", "href", "javascript:void(0);", "style", "cursor: not-allowed;", 3, "ngClass", 4, "ngIf"], ["class", "dropdown-menu low-d", 4, "ngIf"], ["tabindex", "1", "href", "javascript:void(0)", 1, "dropdown-item", 3, "ngClass"], ["tabindex", "2", 1, "dropdown-item", 3, "ngClass", "routerLink"], ["tabindex", "3", "target", "_blank", 1, "dropdown-item", 3, "ngClass", "href"], ["tabindex", "4", "target", "_blank", 1, "dropdown-item", 3, "ngClass", "href"], ["tabindex", "5", "href", "javascript:void(0);", 1, "dropdown-item", 2, "cursor", "not-allowed", 3, "ngClass"], [1, "dropdown-menu", "low-d"], [4, "ngFor", "ngForOf"], ["class", "dropdown-item", "tabindex", "5", 3, "routerLink", 4, "ngIf"], ["class", "dropdown-item", "tabindex", "6", "target", "_blank", 3, "href", 4, "ngIf"], ["class", "dropdown-item", "tabindex", "7", "target", "_blank", 3, "href", 4, "ngIf"], ["class", "dropdown-item", "tabindex", "8", "href", "javascript:void(0);", "style", "cursor: not-allowed;", 4, "ngIf"], ["tabindex", "5", 1, "dropdown-item", 3, "routerLink"], ["tabindex", "6", "target", "_blank", 1, "dropdown-item", 3, "href"], ["tabindex", "7", "target", "_blank", 1, "dropdown-item", 3, "href"], ["tabindex", "8", "href", "javascript:void(0);", 1, "dropdown-item", 2, "cursor", "not-allowed"], ["href", "javascript:void(0)", 1, "nav-link", "btn-mega-menu", 3, "click"], ["xmlns", "http://www.w3.org/2000/svg", "width", "16", "height", "16", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-list"], ["fill-rule", "evenodd", "d", "M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"], ["id", "card-mega-menu", 1, "card-mega-menu"], [1, "position-relative"], [1, "card-mega-menu-items"], ["href", "javascript:void(0);", "title", "Close", 1, "card-mega-menu-close", 3, "click"], ["xmlns", "http://www.w3.org/2000/svg", "width", "20", "height", "20", "fill", "#000", "viewBox", "0 0 16 16", 1, "bi", "bi-x-lg"], ["fill-rule", "evenodd", "d", "M13.854 2.146a.5.5 0 0 1 0 .708l-11 11a.5.5 0 0 1-.708-.708l11-11a.5.5 0 0 1 .708 0Z"], ["fill-rule", "evenodd", "d", "M2.146 2.146a.5.5 0 0 0 0 .708l11 11a.5.5 0 0 0 .708-.708l-11-11a.5.5 0 0 0-.708 0Z"], ["target", "_blank", 3, "href"], ["id", "Ebooklet-password", "tabindex", "-1", "role", "dialog", "aria-labelledby", "Booklet password", "aria-hidden", "true", 1, "modal", "fade", "modal-dsign-sm"], ["role", "document", 1, "modal-dialog", "modal-md", "modal-dialog-centered"], [1, "form-group", "m-0"], ["type", "password", "placeholder", "********", 1, "form-control", 3, "ngModel", "ngModelChange"], ["type", "button", "data-toggle", "modal", 1, "btn", "btn-primary", 3, "click"]],
template: function NavBarComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "section", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](1, "a", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](2, "img", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](8, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](9, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](10, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](11, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](12, "Menu");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](13, "i", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](15, "ul", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](16, "li", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](17, "a", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](18, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](19, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](20, "a", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](21, "i", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](22, NavBarComponent_li_22_Template, 4, 6, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](23, NavBarComponent_li_23_Template, 6, 3, "li", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](24, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](25, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](26, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](27, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](28, "h5", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](29, "Download Document");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](30, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](31, "span", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](32, "\xD7");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](33, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](34, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](35, "input", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](36, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](37, "select", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](38, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](39, "--Select Category--");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](40, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](41, "Category 1");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](42, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](43, "Category 2");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](44, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](45, "Category 3");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](46, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](47, "Category 4");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](48, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](49, "Category 5");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](50, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](51, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](52, "Submit");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](53, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtext */
"Vc"](54, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](55, NavBarComponent_section_55_Template, 9, 1, "section", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](56, NavBarComponent_div_56_Template, 23, 13, "div", 33);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](3, 8, "Govtagline_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpropertyInterpolate */
"uc"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](4, 10, "Govtagline_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](7, 12, "Govtagline_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx._commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.menuListModel == null ? null : ctx.menuListModel.MenuList);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.childDeptMenuList && ctx.childDeptMenuList.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.childDeptMenuList && ctx.childDeptMenuList.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", false);
}
},
directives: [_angular_router__WEBPACK_IMPORTED_MODULE_9__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_11__[
/* NgForOf */
"m"], _angular_common__WEBPACK_IMPORTED_MODULE_11__[
/* NgIf */
"n"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__[
/* NgSelectOption */
"q"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__[
/* ɵangular_packages_forms_forms_x */
"w"], _angular_common__WEBPACK_IMPORTED_MODULE_11__[
/* NgClass */
"l"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__[
/* DefaultValueAccessor */
"b"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__[
/* NgControlStatus */
"m"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__[
/* NgModel */
"p"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__[
/* TranslatePipe */
"c"]],
styles: [".accordion[_ngcontent-%COMP%] .sidenav-dropdown-header[_ngcontent-%COMP%]:after{font-family:Font Awesome\\ 5 Free;content:\"-\";font-size:25px;font-weight:900}.accordion[_ngcontent-%COMP%] .sidenav-dropdown-header.collapsed[_ngcontent-%COMP%]:after{content:\"+\"}.sidenav-dropdown-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e3e3;padding:10px 0}.sidenav-dropdown-title[_ngcontent-%COMP%]{flex:auto}.sidenav-dropdown-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:transparent}.sidenav-dropdown-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1e3e65;font-weight:600}.sidenav-dropdown-body[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#6d6d6d;font-size:14px;margin:5px 15px;padding:4px;font-weight:600;border-radius:10px}.sidenav-dropdown-body[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:27px}.sidenav-dropdown-title-img[_ngcontent-%COMP%]{height:40px;width:40px;background:#fff;text-align:center;line-height:35px;margin-right:10px;border-radius:100%;border:1px solid #e8e8e8}.sidenav-dropdown-body[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}.sidenav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer}.sidenav-dropdown-header-no-submenu[_ngcontent-%COMP%]:after{display:none}.sidebar-w-hover[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{padding:0}.sidebar-w-hover[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none}.sidebar-w-hover[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#000;display:flex;align-items:center;padding:8px 15px;border-radius:0;border-right:3px solid #fff;border-bottom:1px solid #e6e6e6;font-weight:600}.sidebar-w-hover[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background:#ececec;border-right:3px solid #0a4a73}.sub-menu-hover-item.active[_ngcontent-%COMP%]{background-color:#0da1e4}.main-menu.active[_ngcontent-%COMP%]{background-color:#4e4e4e;color:#fff!important}.main-menu.active[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{filter:drop-shadow(2px 4px 6px #000)}.main-menu.active[_ngcontent-%COMP%]:hover{background:#2f2f2f!important}.sidebar-w-hover[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child > a[_ngcontent-%COMP%]{border:none!important}.sidebar-w-hover[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}.sidebar-w-hover-items[_ngcontent-%COMP%]{position:relative}.sidebar-w-hover-submenu[_ngcontent-%COMP%]{display:none;background:#123d6a;position:absolute;right:320px;width:-moz-max-content;width:max-content;text-align:right;line-height:40px;border-radius:12px 0 0 12px;min-width:280px;top:auto;transform:translatey(0);overflow:hidden;top:0}.sidebar-w-hover-submenu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:#12579f}.sidebar-w-hover-submenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0}.sidebar-w-hover-submenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;border-bottom:1px solid hsla(0,0%,100%,.1)}.sidebar-w-hover-submenu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;padding:7px 12px;color:#fff;line-height:normal;font-weight:600}.sidebar-w-hover-submenu[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:25px;border-radius:100%;filter:drop-shadow(2px 4px 6px#000)}.sidebar-w-hover-items[_ngcontent-%COMP%]:hover .sidebar-w-hover-submenu[_ngcontent-%COMP%]{display:block}@media screen and (max-width:1600px){.sidebar-w-hover-submenu[_ngcontent-%COMP%]{transform:translatey(-50%);top:auto}}"]
});
return NavBarComponent;
}();
/***/
},
/***/
"6a0g":
/***/
function a0g(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export CMISModuleViewModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return CMISFilterModel;
});
/* harmony import */
var _common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
var CMISModuleViewModel =
/*#__PURE__*/
_createClass2(function CMISModuleViewModel() {
_classCallCheck(this, CMISModuleViewModel);
});
var CMISFilterModel =
/*#__PURE__*/
_createClass2(function CMISFilterModel() {
_classCallCheck(this, CMISFilterModel);
this.ModuleId = 0;
this.AdmDepartmentCode = 0;
this.DepartmentCode = 0;
this.JanDepartmentCode = 0;
this.FinancialYear = 0;
this.IndexModel = new _common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
});
/***/
},
/***/
"6mOv":
/***/
function mOv(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return DepartmentService;
});
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2Vo4");
/* harmony import */
var _Model_app_setting__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GAWG");
/* harmony import */
var _Model_dictionary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ADQb");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("MLVi");
var DepartmentService =
/*@__PURE__*/
function () {
var DepartmentService =
/*#__PURE__*/
function () {
function DepartmentService(_baseService) {
_classCallCheck(this, DepartmentService);
this._baseService = _baseService;
this.deptModel$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__[
/* BehaviorSubject */
"a"](null);
this.deptMenuList$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__[
/* BehaviorSubject */
"a"](null);
} //#region Department Detail
return _createClass2(DepartmentService, [{
key: "getDepartmentDetail",
value: function getDepartmentDetail() {
return this.deptModel$.asObservable();
}
}, {
key: "setDepartmentDetail",
value: function setDepartmentDetail(model) {
this.deptModel$.next(model);
}
}, {
key: "GetDepartmentDetailByDptCode",
value: function GetDepartmentDetailByDptCode(dptCode) {
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_2__[
/* Dictionary */
"a"]();
param.Add('dptCode', dptCode);
param.Add('isOtherDept', false);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].DepartmentDetailByDptCodeUrl, param);
}
}, {
key: "GetGeneralSubCategory",
value: function GetGeneralSubCategory(CategoryCode) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetGeneralSubCategory + CategoryCode);
} //#endregion
//#region Department Menu List
}, {
key: "getDeptMenuList",
value: function getDeptMenuList() {
return this.deptMenuList$.asObservable();
}
}, {
key: "setDeptMenuList",
value: function setDeptMenuList(model) {
this.deptMenuList$.next(model);
}
}, {
key: "GetDepartmentMenuList",
value: function GetDepartmentMenuList(dptCode) {
var params = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_2__[
/* Dictionary */
"a"]();
params.Add('dptCode', dptCode);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].MenuListForDepartmentUrl, params);
}
}]);
}();
DepartmentService.ɵfac = function DepartmentService_Factory(t) {
return new (t || DepartmentService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵinject */
"ec"](_base_service__WEBPACK_IMPORTED_MODULE_4__[
/* BaseService */
"a"]));
};
DepartmentService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdefineInjectable */
"Rb"]({
token: DepartmentService,
factory: DepartmentService.ɵfac,
providedIn: "root"
});
return DepartmentService;
}();
/***/
},
/***/
"7+yb":
/***/
function yb(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return PluginModule;
});
/* harmony import */
var _nav_bar_nav_bar_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5hVl");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ofXK");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("sYmb");
/* harmony import */
var angular_progress_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("nUjy");
/* harmony import */
var ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("hzby");
/* harmony import */
var ngx_pagination__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oOf3");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("3Pt+");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("/9+q");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("GmSP");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("fXoL");
var sharedCom = [_nav_bar_nav_bar_component__WEBPACK_IMPORTED_MODULE_0__[
/* NavBarComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_8__[
/* NoRecordsComponent */
"a"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_9__[
/* MiniLoaderComponent */
"a"]];
var SharedModule = [ngx_pagination__WEBPACK_IMPORTED_MODULE_5__[
/* NgxPaginationModule */
"a"], angular_progress_bar__WEBPACK_IMPORTED_MODULE_3__[
/* ProgressBarModule */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_4__[
/* BsDatepickerModule */
"c"].forRoot()];
var PluginModule =
/*@__PURE__*/
function () {
var PluginModule =
/*#__PURE__*/
_createClass2(function PluginModule() {
_classCallCheck(this, PluginModule);
});
PluginModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_10__[
/* ɵɵdefineNgModule */
"Tb"]({
type: PluginModule
});
PluginModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_10__[
/* ɵɵdefineInjector */
"Sb"]({
factory: function PluginModule_Factory(t) {
return new (t || PluginModule)();
},
imports: [[_ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__[
/* TranslateModule */
"b"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__[
/* FormsModule */
"h"], _angular_router__WEBPACK_IMPORTED_MODULE_7__[
/* RouterModule */
"e"], _angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* CommonModule */
"c"], SharedModule], ngx_pagination__WEBPACK_IMPORTED_MODULE_5__[
/* NgxPaginationModule */
"a"], angular_progress_bar__WEBPACK_IMPORTED_MODULE_3__[
/* ProgressBarModule */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_4__[
/* BsDatepickerModule */
"c"]]
});
return PluginModule;
}();
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_10__[
/* ɵɵsetNgModuleScope */
"Qc"](PluginModule, {
declarations: [_nav_bar_nav_bar_component__WEBPACK_IMPORTED_MODULE_0__[
/* NavBarComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_8__[
/* NoRecordsComponent */
"a"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_9__[
/* MiniLoaderComponent */
"a"]],
imports: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__[
/* TranslateModule */
"b"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__[
/* FormsModule */
"h"], _angular_router__WEBPACK_IMPORTED_MODULE_7__[
/* RouterModule */
"e"], _angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* CommonModule */
"c"], ngx_pagination__WEBPACK_IMPORTED_MODULE_5__[
/* NgxPaginationModule */
"a"], angular_progress_bar__WEBPACK_IMPORTED_MODULE_3__[
/* ProgressBarModule */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_4__[
/* BsDatepickerModule */
"c"]],
exports: [ngx_pagination__WEBPACK_IMPORTED_MODULE_5__[
/* NgxPaginationModule */
"a"], angular_progress_bar__WEBPACK_IMPORTED_MODULE_3__[
/* ProgressBarModule */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_4__[
/* BsDatepickerModule */
"c"], _nav_bar_nav_bar_component__WEBPACK_IMPORTED_MODULE_0__[
/* NavBarComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_8__[
/* NoRecordsComponent */
"a"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_9__[
/* MiniLoaderComponent */
"a"]]
});
})();
/***/
},
/***/
"71LL":
/***/
function LL(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AppService;
});
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2Vo4");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("fXoL");
var AppService =
/*@__PURE__*/
function () {
var AppService =
/*#__PURE__*/
_createClass2(function AppService() {
_classCallCheck(this, AppService);
this.showNavigation$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__[
/* BehaviorSubject */
"a"](true);
this.showHeader$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__[
/* BehaviorSubject */
"a"](true);
this.showFooter$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__[
/* BehaviorSubject */
"a"](true);
});
AppService.ɵfac = function AppService_Factory(t) {
return new (t || AppService)();
};
AppService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdefineInjectable */
"Rb"]({
token: AppService,
factory: AppService.ɵfac,
providedIn: 'root'
});
return AppService;
}();
/***/
},
/***/
"7o/Q":
/***/
function o_Q(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return Subscriber;
});
/* unused harmony export SafeSubscriber */
/* harmony import */
var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("n6bG");
/* harmony import */
var _Observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("gRHU");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("quSY");
/* harmony import */
var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("2QA8");
/* harmony import */
var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("2fFW");
/* harmony import */
var _util_hostReportError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("NJ4a");
var Subscriber =
/*#__PURE__*/
function (_Subscription__WEBPAC, _internal_symbol_rxSu) {
function Subscriber(destinationOrNext, error, complete) {
var _this58;
_classCallCheck(this, Subscriber);
_this58 = _callSuper(this, Subscriber);
_this58.syncErrorValue = null;
_this58.syncErrorThrown = false;
_this58.syncErrorThrowable = false;
_this58.isStopped = false;
switch (arguments.length) {
case 0:
_this58.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__[
/* empty */
"a"];
break;
case 1:
if (!destinationOrNext) {
_this58.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__[
/* empty */
"a"];
break;
}
if (typeof destinationOrNext === 'object') {
if (destinationOrNext instanceof Subscriber) {
_this58.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
_this58.destination = destinationOrNext;
destinationOrNext.add(_this58);
} else {
_this58.syncErrorThrowable = true;
_this58.destination = new SafeSubscriber(_this58, destinationOrNext);
}
break;
}
default:
_this58.syncErrorThrowable = true;
_this58.destination = new SafeSubscriber(_this58, destinationOrNext, error, complete);
break;
}
return _this58;
}
_inherits(Subscriber, _Subscription__WEBPAC);
return _createClass2(Subscriber, [{
key: _internal_symbol_rxSu,
value: function value() {
return this;
}
}, {
key: "next",
value: function next(value) {
if (!this.isStopped) {
this._next(value);
}
}
}, {
key: "error",
value: function error(err) {
if (!this.isStopped) {
this.isStopped = true;
this._error(err);
}
}
}, {
key: "complete",
value: function complete() {
if (!this.isStopped) {
this.isStopped = true;
this._complete();
}
}
}, {
key: "unsubscribe",
value: function unsubscribe() {
if (this.closed) {
return;
}
this.isStopped = true;
_superPropGet(Subscriber, "unsubscribe", this, 3)([]);
}
}, {
key: "_next",
value: function _next(value) {
this.destination.next(value);
}
}, {
key: "_error",
value: function _error(err) {
this.destination.error(err);
this.unsubscribe();
}
}, {
key: "_complete",
value: function _complete() {
this.destination.complete();
this.unsubscribe();
}
}, {
key: "_unsubscribeAndRecycle",
value: function _unsubscribeAndRecycle() {
var _parentOrParents = this._parentOrParents;
this._parentOrParents = null;
this.unsubscribe();
this.closed = false;
this.isStopped = false;
this._parentOrParents = _parentOrParents;
return this;
}
}], [{
key: "create",
value: function create(next, error, complete) {
var subscriber = new Subscriber(next, error, complete);
subscriber.syncErrorThrowable = false;
return subscriber;
}
}]);
}(_Subscription__WEBPACK_IMPORTED_MODULE_2__[
/* Subscription */
"a"], _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__[
/* rxSubscriber */
"a"]);
var SafeSubscriber =
/*#__PURE__*/
function (_Subscriber) {
function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {
var _this59;
_classCallCheck(this, SafeSubscriber);
_this59 = _callSuper(this, SafeSubscriber);
_this59._parentSubscriber = _parentSubscriber;
var next;
var context = _this59;
if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__[
/* isFunction */
"a"])(observerOrNext)) {
next = observerOrNext;
} else if (observerOrNext) {
next = observerOrNext.next;
error = observerOrNext.error;
complete = observerOrNext.complete;
if (observerOrNext !== _Observer__WEBPACK_IMPORTED_MODULE_1__[
/* empty */
"a"]) {
context = Object.create(observerOrNext);
if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__[
/* isFunction */
"a"])(context.unsubscribe)) {
_this59.add(context.unsubscribe.bind(context));
}
context.unsubscribe = _this59.unsubscribe.bind(_this59);
}
}
_this59._context = context;
_this59._next = next;
_this59._error = error;
_this59._complete = complete;
return _this59;
}
_inherits(SafeSubscriber, _Subscriber);
return _createClass2(SafeSubscriber, [{
key: "next",
value: function next(value) {
if (!this.isStopped && this._next) {
var _parentSubscriber = this._parentSubscriber;
if (!_config__WEBPACK_IMPORTED_MODULE_4__[
/* config */
"a"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._next, value);
} else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
this.unsubscribe();
}
}
}
}, {
key: "error",
value: function error(err) {
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
var useDeprecatedSynchronousErrorHandling = _config__WEBPACK_IMPORTED_MODULE_4__[
/* config */
"a"].useDeprecatedSynchronousErrorHandling;
if (this._error) {
if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._error, err);
this.unsubscribe();
} else {
this.__tryOrSetError(_parentSubscriber, this._error, err);
this.unsubscribe();
}
} else if (!_parentSubscriber.syncErrorThrowable) {
this.unsubscribe();
if (useDeprecatedSynchronousErrorHandling) {
throw err;
}
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__[
/* hostReportError */
"a"])(err);
} else {
if (useDeprecatedSynchronousErrorHandling) {
_parentSubscriber.syncErrorValue = err;
_parentSubscriber.syncErrorThrown = true;
} else {
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__[
/* hostReportError */
"a"])(err);
}
this.unsubscribe();
}
}
}
}, {
key: "complete",
value: function complete() {
var _this60 = this;
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
if (this._complete) {
var wrappedComplete = function wrappedComplete() {
return _this60._complete.call(_this60._context);
};
if (!_config__WEBPACK_IMPORTED_MODULE_4__[
/* config */
"a"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(wrappedComplete);
this.unsubscribe();
} else {
this.__tryOrSetError(_parentSubscriber, wrappedComplete);
this.unsubscribe();
}
} else {
this.unsubscribe();
}
}
}
}, {
key: "__tryOrUnsub",
value: function __tryOrUnsub(fn, value) {
try {
fn.call(this._context, value);
} catch (err) {
this.unsubscribe();
if (_config__WEBPACK_IMPORTED_MODULE_4__[
/* config */
"a"].useDeprecatedSynchronousErrorHandling) {
throw err;
} else {
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__[
/* hostReportError */
"a"])(err);
}
}
}
}, {
key: "__tryOrSetError",
value: function __tryOrSetError(parent, fn, value) {
if (!_config__WEBPACK_IMPORTED_MODULE_4__[
/* config */
"a"].useDeprecatedSynchronousErrorHandling) {
throw new Error('bad call');
}
try {
fn.call(this._context, value);
} catch (err) {
if (_config__WEBPACK_IMPORTED_MODULE_4__[
/* config */
"a"].useDeprecatedSynchronousErrorHandling) {
parent.syncErrorValue = err;
parent.syncErrorThrown = true;
return true;
} else {
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__[
/* hostReportError */
"a"])(err);
return true;
}
}
return false;
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var _parentSubscriber = this._parentSubscriber;
this._context = null;
this._parentSubscriber = null;
_parentSubscriber.unsubscribe();
}
}]);
}(Subscriber); //# sourceMappingURL=Subscriber.js.map
/***/
},
/***/
"81W+":
/***/
function W(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return DepartmentEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return WebDirectoryGroupByEnum;
});
var DepartmentEnum =
/*@__PURE__*/
function (DepartmentEnum) {
DepartmentEnum[DepartmentEnum["Churu"] = 32] = "Churu";
DepartmentEnum[DepartmentEnum["JankalyanWebPortal"] = 982] = "JankalyanWebPortal";
DepartmentEnum[DepartmentEnum["BudgetWebsite"] = 1149] = "BudgetWebsite";
DepartmentEnum[DepartmentEnum["Collectorate"] = 11] = "Collectorate";
DepartmentEnum[DepartmentEnum["RISL"] = 352] = "RISL";
DepartmentEnum[DepartmentEnum["Khairthal_Tijara"] = 1283] = "Khairthal_Tijara";
DepartmentEnum[DepartmentEnum["Alwar"] = 23] = "Alwar";
DepartmentEnum[DepartmentEnum["Medical_Education"] = 102] = "Medical_Education";
DepartmentEnum[DepartmentEnum["RajEms"] = 505] = "RajEms";
DepartmentEnum[DepartmentEnum["Kotputli_Behror"] = 1282] = "Kotputli_Behror";
DepartmentEnum[DepartmentEnum["Karauli"] = 43] = "Karauli";
return DepartmentEnum;
}({});
var WebDirectoryGroupByEnum =
/*@__PURE__*/
function (WebDirectoryGroupByEnum) {
WebDirectoryGroupByEnum["DepartmentCategory"] = "department-category";
WebDirectoryGroupByEnum["AdminDepartment"] = "admin-department";
WebDirectoryGroupByEnum["SectorDepartment"] = "sector-department";
WebDirectoryGroupByEnum["DepartmentSubCategory"] = "department-sub-category";
return WebDirectoryGroupByEnum;
}({});
/***/
},
/***/
"9AGB":
/***/
function AGB(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var identity_1 =
/*@__PURE__*/
__webpack_require__("yoF8");
function pipe() {
var fns = [];
for (var _i = 0; _i < arguments.length; _i++) {
fns[_i] = arguments[_i];
}
return pipeFromArray(fns);
}
exports.pipe = pipe;
function pipeFromArray(fns) {
if (fns.length === 0) {
return identity_1.identity;
}
if (fns.length === 1) {
return fns[0];
}
return function piped(input) {
return fns.reduce(function (prev, fn) {
return fn(prev);
}, input);
};
}
exports.pipeFromArray = pipeFromArray;
/***/
},
/***/
"9GqC":
/***/
function GqC(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return ProjectMasterService;
});
/* harmony import */
var _Model_app_setting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GAWG");
/* harmony import */
var _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ADQb");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("MLVi");
var ProjectMasterService =
/*@__PURE__*/
function () {
var ProjectMasterService =
/*#__PURE__*/
function () {
function ProjectMasterService(_baseService) {
_classCallCheck(this, ProjectMasterService);
this._baseService = _baseService;
}
return _createClass2(ProjectMasterService, [{
key: "GetProjectMasterListBySearchFilterData",
value: function GetProjectMasterListBySearchFilterData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetProjectMasterListBySearchFilter, model);
}
}, {
key: "GetById",
value: function GetById(id) {
var IsBase64File = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__[
/* Dictionary */
"a"]();
param.Add("id", id);
param.Add("IsBase64File", IsBase64File);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].getProjectMaterDetailUrl, param);
}
}]);
}();
ProjectMasterService.ɵfac = function ProjectMasterService_Factory(t) {
return new (t || ProjectMasterService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵinject */
"ec"](_base_service__WEBPACK_IMPORTED_MODULE_3__[
/* BaseService */
"a"]));
};
ProjectMasterService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdefineInjectable */
"Rb"]({
token: ProjectMasterService,
factory: ProjectMasterService.ɵfac,
providedIn: 'root'
});
return ProjectMasterService;
}();
/***/
},
/***/
"9GyW":
/***/
function GyW(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return WebsitePoliciesComponent;
});
/* harmony import */
var src_app_Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9h9k");
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("j672");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fXoL");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("jhN1");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("LYBR");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("qVlC");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("ofXK");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("GmSP");
/* harmony import */
var src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("/9+q");
function WebsitePoliciesComponent_span_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1724 = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r1724.translate.currentLang != "hi" ? ctx_r1724.pageTitle == null ? null : ctx_r1724.pageTitle.NameEnglish : ctx_r1724.pageTitle == null ? null : ctx_r1724.pageTitle.NameHindi);
}
}
function WebsitePoliciesComponent_span_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function WebsitePoliciesComponent_span_13_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1726 = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r1726.translate.currentLang != "hi" ? ctx_r1726.pageTitle == null ? null : ctx_r1726.pageTitle.NameEnglish : ctx_r1726.pageTitle == null ? null : ctx_r1726.pageTitle.NameHindi);
}
}
function WebsitePoliciesComponent_span_14_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function WebsitePoliciesComponent_div_18_li_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](1, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r1732 = ctx.$implicit;
var ctx_r1731 = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵpropertyInterpolate2 */
"wc"]("routerLink", "/jankalyan-category-and-entry-type/0/", item_r1732.JankalyanCategoryCode, "/", item_r1732.Code, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r1731.translate.currentLang != "hi" ? item_r1732 == null ? null : item_r1732.SubMenuNameEnglish : item_r1732 == null ? null : item_r1732.SubMenuNameHindi, " ");
}
}
function WebsitePoliciesComponent_div_18_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](1, "ul", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](2, WebsitePoliciesComponent_div_18_li_2_Template, 3, 3, "li", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r1728 = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r1728.entryTypes);
}
}
function WebsitePoliciesComponent_app_mini_loader_19_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function WebsitePoliciesComponent_app_no_records_20_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 18);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
var WebsitePoliciesComponent =
/*@__PURE__*/
function () {
var WebsitePoliciesComponent =
/*#__PURE__*/
function () {
function WebsitePoliciesComponent(translate, sanitizer, _route, _titleService, _commonService, _distDeptService) {
_classCallCheck(this, WebsitePoliciesComponent);
this.translate = translate;
this.sanitizer = sanitizer;
this._route = _route;
this._titleService = _titleService;
this._commonService = _commonService;
this._distDeptService = _distDeptService;
this.categoryEnm = src_app_Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_0__[
/* JankalyanCategoryEnum */
"b"];
this.getCategoryDetail();
this.getEntryTypeListByCategory();
}
return _createClass2(WebsitePoliciesComponent, [{
key: "ngOnInit",
value: function ngOnInit() {}
}, {
key: "getCategoryDetail",
value: function getCategoryDetail() {
var _this61 = this;
this._distDeptService.GetJankalyanCategoryDetail(Number(this.categoryEnm.WebsitePolicyCode)).subscribe(function (res) {
if (res.IsSuccess) {
var cat = res.Data;
if (cat) {
_this61.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__[
/* PageTitleModel */
"f"]();
_this61.pageTitle.NameEnglish = cat.SubMenuNameEnglish || cat.Name;
_this61.pageTitle.NameHindi = cat.SubMenuNameHindi || cat.NameHindi;
_this61._commonService.SetWebTitle(_this61.translate.currentLang == 'hi' ? _this61.pageTitle.NameHindi : _this61.pageTitle.NameEnglish);
}
}
}, function (error) {
console.error(error);
});
}
}, {
key: "getEntryTypeListByCategory",
value: function getEntryTypeListByCategory() {
var _this62 = this;
this.entryTypes = undefined;
this._distDeptService.GetJankalyanEntryTypeListByCategory(Number(this.categoryEnm.WebsitePolicyCode)).subscribe(function (data) {
var _a;
if (data.IsSuccess) {
_this62.entryTypes = (_a = data) === null || _a === void 0 ? void 0 : _a.Data;
} else {
_this62.entryTypes = [];
}
}, function (error) {
_this62.entryTypes = [];
console.error(error.message);
});
}
}]);
}();
WebsitePoliciesComponent.ɵfac = function WebsitePoliciesComponent_Factory(t) {
return new (t || WebsitePoliciesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__[
/* DomSanitizer */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_5__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__[
/* Title */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_6__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_7__[
/* DptDistrictWebsiteService */
"a"]));
};
WebsitePoliciesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdefineComponent */
"Pb"]({
type: WebsitePoliciesComponent,
selectors: [["app-website-policies"]],
decls: 21,
vars: 14,
consts: [["id", "sticky-anchor"], ["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [4, "ngIf"], [1, "col-lg-12", "mt-5"], [1, "title", "text-center", "mb-1"], [1, "img-fluid", 3, "src", "title", "alt"], [1, "inner-page", "page-about", "page-editor-entry-design"], [1, "container"], [1, "row"], ["class", "col-lg-12", 4, "ngIf"], [3, "showImage", 4, "ngIf"], [1, "col-lg-12"], [1, "quick-link", "site-map-link", "page-sitemap-list", "p-5", "page-link-listing"], [4, "ngFor", "ngForOf"], [3, "showImage"]],
template: function WebsitePoliciesComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelement */
"Wb"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](1, "nav", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](2, "ol", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](7, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](8, WebsitePoliciesComponent_span_8_Template, 2, 1, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](9, WebsitePoliciesComponent_span_9_Template, 2, 1, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](11, "h1", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelement */
"Wb"](12, "img", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](13, WebsitePoliciesComponent_span_13_Template, 2, 1, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](14, WebsitePoliciesComponent_span_14_Template, 2, 1, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](15, "section", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](16, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementStart */
"ac"](17, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](18, WebsitePoliciesComponent_div_18_Template, 3, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](19, WebsitePoliciesComponent_app_mini_loader_19_Template, 1, 0, "app-mini-loader", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtemplate */
"Tc"](20, WebsitePoliciesComponent_app_no_records_20_Template, 1, 1, "app-no-records", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx._commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵpipeBind1 */
"oc"](6, 12, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵpropertyInterpolate */
"uc"]("src", (ctx.pageTitle == null ? null : ctx.pageTitle.ImagePath) || "assets/images/document_Icon.png", _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.entryTypes && ctx.entryTypes.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.entryTypes);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.entryTypes && ctx.entryTypes.length == 0);
}
},
directives: [_angular_router__WEBPACK_IMPORTED_MODULE_5__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_8__[
/* NgIf */
"n"], _angular_common__WEBPACK_IMPORTED_MODULE_8__[
/* NgForOf */
"m"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_9__[
/* MiniLoaderComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_10__[
/* NoRecordsComponent */
"a"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__[
/* TranslatePipe */
"c"]],
styles: [""]
});
return WebsitePoliciesComponent;
}();
/***/
},
/***/
"9h9k":
/***/
function h9k(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return JankalyanCategoryEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return JankalyanEntryTypeEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return JankalyanEntryCategoryTypeEnum;
});
/* unused harmony export ModuleNameOfWebsiteEnum */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return DepartmentCodeEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return SingleEntryDataType;
});
var JankalyanCategoryEnum =
/*@__PURE__*/
function (JankalyanCategoryEnum) {
JankalyanCategoryEnum["AboutDistrict"] = "About District";
JankalyanCategoryEnum["AboutDistrictCode"] = "1";
JankalyanCategoryEnum[JankalyanCategoryEnum["AboutDepartmantDistCode"] = 4] = "AboutDepartmantDistCode";
JankalyanCategoryEnum["GIGWGuidelines"] = "GIGW Guidelines";
JankalyanCategoryEnum["GIGWGuidelinesCode"] = "50";
JankalyanCategoryEnum["WebsitePolicy"] = "Website Policy";
JankalyanCategoryEnum["WebsitePolicyCode"] = "51";
return JankalyanCategoryEnum;
}({});
var JankalyanEntryTypeEnum =
/*@__PURE__*/
function (JankalyanEntryTypeEnum) {
JankalyanEntryTypeEnum["About"] = "About";
JankalyanEntryTypeEnum["AboutCode"] = "1";
JankalyanEntryTypeEnum["FooterNodalOfficerDetail"] = "Footer Nodal Officer Detail";
JankalyanEntryTypeEnum["FooterNodalOfficerDetailCode"] = "40"; // FooterNodalOfficerDetailHindi = "Footer Nodal Officer Detail (Hindi)",
// FooterNodalOfficerDetailHindiCode = "81",
JankalyanEntryTypeEnum["CopyRightDetail"] = "Copy Right Detail";
JankalyanEntryTypeEnum["CopyRightDetailCode"] = "41";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["Inauguration"] = 60] = "Inauguration";
JankalyanEntryTypeEnum["Shilanyas"] = "Shilanyas";
JankalyanEntryTypeEnum["ShilanyasCode"] = "58";
JankalyanEntryTypeEnum["Lokarpan"] = "Lokarpan";
JankalyanEntryTypeEnum["LokarpanCode"] = "52";
JankalyanEntryTypeEnum["SpecialRelease"] = "SpecialRelease";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["SpecialReleaseCode"] = 41] = "SpecialReleaseCode";
JankalyanEntryTypeEnum["PressRelease"] = "PressRelease";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["PressReleaseCode"] = 36] = "PressReleaseCode";
JankalyanEntryTypeEnum["WebsitePolicy"] = "Website Policy";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["WebsitePolicyCode"] = 83] = "WebsitePolicyCode";
JankalyanEntryTypeEnum["ContentContributionModeration"] = "Content Contribution, Moderation and Approval Poli";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["ContentContributionModerationCode"] = 84] = "ContentContributionModerationCode";
JankalyanEntryTypeEnum["HyperlinkPolicy"] = "Hyperlink Policy";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["HyperlinkPolicyCode"] = 85] = "HyperlinkPolicyCode";
JankalyanEntryTypeEnum["ContentReviewPolicy"] = "Content Review Policy";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["ContentReviewPolicyCode"] = 86] = "ContentReviewPolicyCode";
JankalyanEntryTypeEnum["ContentArchivalPolicy"] = "Content Archival Policy";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["ContentArchivalPolicyCode"] = 87] = "ContentArchivalPolicyCode";
JankalyanEntryTypeEnum["TermsConditions"] = "Terms & Conditions";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["TermsConditionsCode"] = 88] = "TermsConditionsCode";
JankalyanEntryTypeEnum["AccessibilityStatement"] = "Accessibility Statement";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["AccessibilityStatementCode"] = 89] = "AccessibilityStatementCode";
JankalyanEntryTypeEnum["Disclaimer"] = "Disclaimer";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["DisclaimerCode"] = 90] = "DisclaimerCode";
JankalyanEntryTypeEnum["PrivacyPolicy"] = "Privacy Policy";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["PrivacyPolicyCode"] = 91] = "PrivacyPolicyCode";
JankalyanEntryTypeEnum["ScreenReaderAccess"] = "Screen Reader Access";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["ScreenReaderAccessCode"] = 92] = "ScreenReaderAccessCode";
JankalyanEntryTypeEnum["GeneralTermsAndConditions"] = "General Terms and Conditions";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["GeneralTermsAndConditionsCode"] = 93] = "GeneralTermsAndConditionsCode";
JankalyanEntryTypeEnum["CopyrightPolicy"] = "Copyright Policy";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["CopyrightPolicyCode"] = 94] = "CopyrightPolicyCode";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["HomeCode"] = 356] = "HomeCode";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["WelcomePage"] = 124] = "WelcomePage";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["WelcomePage2"] = 124] = "WelcomePage2";
JankalyanEntryTypeEnum[JankalyanEntryTypeEnum["WelcomePage3"] = 124] = "WelcomePage3";
return JankalyanEntryTypeEnum;
}({});
var JankalyanEntryCategoryTypeEnum =
/*@__PURE__*/
function (JankalyanEntryCategoryTypeEnum) {
JankalyanEntryCategoryTypeEnum["Introduction"] = "\u092A\u094D\u0930\u0938\u094D\u0924\u093E\u0935\u0928\u093E";
JankalyanEntryCategoryTypeEnum["IntroductionCode"] = "20";
JankalyanEntryCategoryTypeEnum["Parichay"] = "\u092A\u0930\u093F\u091A\u092F";
JankalyanEntryCategoryTypeEnum["ParichayCode"] = "21";
JankalyanEntryCategoryTypeEnum["Definitions"] = "\u092A\u0930\u093F\u092D\u093E\u0937\u093E\u090F\u0902";
JankalyanEntryCategoryTypeEnum["DefinitionsCode"] = "22";
JankalyanEntryCategoryTypeEnum["ObjectiveofTheScheme"] = "\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0909\u0926\u0947\u0926\u094D\u0937\u094D\u092F";
JankalyanEntryCategoryTypeEnum["ObjectiveofTheSchemeCode"] = "23";
JankalyanEntryCategoryTypeEnum["PlanDetails"] = "\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0935\u093F\u0935\u0930\u0923";
JankalyanEntryCategoryTypeEnum["PlanDetailsCode"] = "24";
JankalyanEntryCategoryTypeEnum["PolicyYear"] = "\u092A\u0949\u0932\u093F\u0938\u0940 \u0935\u0930\u094D\u0937";
JankalyanEntryCategoryTypeEnum["PolicyYearCode"] = "25";
JankalyanEntryCategoryTypeEnum["EligibilityUnderScheme"] = "\u092F\u094B\u091C\u0928\u093E\u0928\u094D\u0924\u0930\u094D\u0917\u0924 \u092A\u093E\u0924\u094D\u0930\u0924\u093E";
JankalyanEntryCategoryTypeEnum["EligibilityUnderSchemeCode"] = "26";
JankalyanEntryCategoryTypeEnum["BeneficiariesofTheScheme"] = "\u092F\u094B\u091C\u0928\u093E \u0915\u0947 \u0932\u093E\u092D\u093E\u0930\u094D\u0925\u0940";
JankalyanEntryCategoryTypeEnum["BeneficiariesofTheSchemeCode"] = "27";
JankalyanEntryCategoryTypeEnum["ItIsNecessaryToJoinThePlan"] = "\u092F\u094B\u091C\u0928\u093E \u0938\u0947 \u091C\u0941\u095C\u0928\u093E \u091C\u0930\u0942\u0930\u0940 \u0939\u0948";
JankalyanEntryCategoryTypeEnum["ItIsNecessaryToJoinThePlanCode"] = "28";
JankalyanEntryCategoryTypeEnum["UnderRegistrationProcess"] = "\t\u092F\u094B\u091C\u0928\u093E\u0930\u094D\u0928\u094D\u0924\u0917\u0924 \u092A\u0902\u091C\u0940\u0915\u0930\u0923 \u0915\u0940 \u092A\u094D\u0930\u0915\u094D\u0930\u093F\u092F\u093E";
JankalyanEntryCategoryTypeEnum["UnderRegistrationProcessCode"] = "29";
JankalyanEntryCategoryTypeEnum["PlannedPackage"] = "\u092F\u094B\u091C\u0928\u093E\u0930\u094D\u0928\u094D\u0924\u0917\u0924 \u092A\u0948\u0915\u0947\u091C";
JankalyanEntryCategoryTypeEnum["PlannedPackageCode"] = "30";
JankalyanEntryCategoryTypeEnum["ProfitTakingProcess"] = "\u092F\u094B\u091C\u0928\u093E\u0930\u094D\u0928\u094D\u0924\u0917\u0924 \u0932\u093E\u092D \u0932\u0947\u0928\u0947 \u0915\u0940 \u092A\u094D\u0930\u0915\u094D\u0930\u093F\u092F\u093E";
JankalyanEntryCategoryTypeEnum["ProfitTakingProcessCode"] = "31";
JankalyanEntryCategoryTypeEnum["DisposalOfCircumvention"] = "\t\u092A\u0930\u093F\u0935\u0947\u0926\u0928\u093E \u0928\u093F\u0938\u094D\u0924\u093E\u0930\u0923";
JankalyanEntryCategoryTypeEnum["DisposalOfCircumventionCode"] = "32";
JankalyanEntryCategoryTypeEnum["SpecialFeaturesOfThePlan"] = "\u092F\u094B\u091C\u0928\u093E \u0915\u0940 \u0916\u093E\u0938 \u092C\u093E\u0924\u0947\u0902";
JankalyanEntryCategoryTypeEnum["SpecialFeaturesOfThePlanCode"] = "33";
JankalyanEntryCategoryTypeEnum["Contact"] = "\u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947";
JankalyanEntryCategoryTypeEnum["ContactCode"] = "34";
JankalyanEntryCategoryTypeEnum["ImportantThingsRelatedToJanAadhaarCard"] = "\u091C\u0928\u0906\u0927\u093E\u0930 \u0915\u093E\u0930\u094D\u0921 \u0938\u0947 \u091C\u0941\u0921\u0940 \u0906\u0935\u0936\u094D\u092F\u0915 \u092C\u093E\u0924\u0947\u0902";
JankalyanEntryCategoryTypeEnum["ImportantThingsRelatedToJanAadhaarCardCode"] = "35";
JankalyanEntryCategoryTypeEnum["RequiredDocuments"] = "\u0906\u0935\u0936\u094D\u092F\u0915 \u0926\u0938\u094D\u0924\u093E\u0935\u0947\u091C";
JankalyanEntryCategoryTypeEnum["RequiredDocumentsCode"] = "36";
JankalyanEntryCategoryTypeEnum["FooterNodalOfficerDetail"] = "Footer Nodal Officer Detail";
JankalyanEntryCategoryTypeEnum["FooterNodalOfficerDetailCode"] = "40"; // FooterNodalOfficerDetailHindi = "Footer Nodal Officer Detail (Hindi)",
// FooterNodalOfficerDetailHindiCode = "81",
JankalyanEntryCategoryTypeEnum["CopyRightDetail"] = "Copy Right Detail";
JankalyanEntryCategoryTypeEnum["CopyRightDetailCode"] = "41";
JankalyanEntryCategoryTypeEnum["GIGW_Guidelines"] = "GIGW Guidelines";
JankalyanEntryCategoryTypeEnum["GIGW_GuidelinesCode"] = "50";
JankalyanEntryCategoryTypeEnum["WebsitePolicy"] = "Website Policy";
JankalyanEntryCategoryTypeEnum["WebsitePolicyCode"] = "51";
JankalyanEntryCategoryTypeEnum["HospitalNotSignedTheMOU"] = "Hospital Not Signed The MOU";
JankalyanEntryCategoryTypeEnum["HospitalNotSignedTheMOUCode"] = "62";
return JankalyanEntryCategoryTypeEnum;
}({});
var ModuleNameOfWebsiteEnum =
/*@__PURE__*/
function (ModuleNameOfWebsiteEnum) {
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["JankayanCategory"] = 1] = "JankayanCategory";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["JankayanType"] = 2] = "JankayanType";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["GeneralEntryCategory"] = 3] = "GeneralEntryCategory";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["GovernmentDocumentType"] = 4] = "GovernmentDocumentType";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["CMISModule"] = 5] = "CMISModule";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["Scheme"] = 6] = "Scheme";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["PressRelease"] = 7] = "PressRelease";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["Tender"] = 8] = "Tender";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["Projects"] = 9] = "Projects";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["DepartmentContactCategory"] = 10] = "DepartmentContactCategory";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["StatePolicy"] = 11] = "StatePolicy";
ModuleNameOfWebsiteEnum[ModuleNameOfWebsiteEnum["MLA"] = 12] = "MLA";
return ModuleNameOfWebsiteEnum;
}({});
var DepartmentCodeEnum =
/*@__PURE__*/
function (DepartmentCodeEnum) {
DepartmentCodeEnum[DepartmentCodeEnum["ChiranjeeviPortal"] = 18] = "ChiranjeeviPortal";
DepartmentCodeEnum[DepartmentCodeEnum["PSKS"] = 989] = "PSKS";
DepartmentCodeEnum[DepartmentCodeEnum["WebMyWay"] = 994] = "WebMyWay";
DepartmentCodeEnum[DepartmentCodeEnum["DirectorateOfPeaceNonViolence"] = 495] = "DirectorateOfPeaceNonViolence";
DepartmentCodeEnum[DepartmentCodeEnum["DIETSRajasthan"] = 189] = "DIETSRajasthan";
return DepartmentCodeEnum;
}({});
var SingleEntryDataType =
/*@__PURE__*/
function (SingleEntryDataType) {
SingleEntryDataType[SingleEntryDataType["PDF"] = 30404] = "PDF";
SingleEntryDataType[SingleEntryDataType["Data"] = 30403] = "Data";
SingleEntryDataType[SingleEntryDataType["URL"] = 30405] = "URL";
SingleEntryDataType[SingleEntryDataType["IFrame"] = 31124] = "IFrame";
return SingleEntryDataType;
}({});
/***/
},
/***/
"9ppp":
/***/
function ppp(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return ObjectUnsubscribedError;
});
var ObjectUnsubscribedErrorImpl =
/*@__PURE__*/
function () {
function ObjectUnsubscribedErrorImpl() {
Error.call(this);
this.message = 'object unsubscribed';
this.name = 'ObjectUnsubscribedError';
return this;
}
ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
return ObjectUnsubscribedErrorImpl;
}();
var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl; //# sourceMappingURL=ObjectUnsubscribedError.js.map
/***/
},
/***/
"ADQb":
/***/
function ADQb(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return Dictionary;
});
var Dictionary =
/*#__PURE__*/
function () {
function Dictionary() {
_classCallCheck(this, Dictionary);
this.items = {};
this.count = 0;
}
return _createClass2(Dictionary, [{
key: "ContainsKey",
value: function ContainsKey(key) {
return this.items.hasOwnProperty(key);
}
}, {
key: "Count",
value: function Count() {
return this.count;
}
}, {
key: "Add",
value: function Add(key, value) {
if (!this.items.hasOwnProperty(key)) {
this.count++;
}
this.items[key] = value;
}
}, {
key: "Remove",
value: function Remove(key) {
var val = this.items[key];
delete this.items[key];
this.count--;
return val;
}
}, {
key: "Item",
value: function Item(key) {
return this.items[key];
}
}, {
key: "Keys",
value: function Keys() {
var keySet = [];
for (var prop in this.items) {
if (this.items.hasOwnProperty(prop)) {
keySet.push(prop);
}
}
return keySet;
}
}, {
key: "Values",
value: function Values() {
var values = [];
for (var prop in this.items) {
if (this.items.hasOwnProperty(prop)) {
values.push(this.items[prop]);
}
}
return values;
}
}]);
}();
/***/
},
/***/
"AeFW":
/***/
function AeFW(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return UrlEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return WebTemplateEnum;
});
var UrlEnum =
/*@__PURE__*/
function (UrlEnum) {
UrlEnum["HomeUrl"] = "/home/dptHome/";
UrlEnum["DefaultBannerUrl"] = "https://jankalyanfile.rajasthan.gov.in//Content/UploadFolder/DepartmentMaster/18/2022/Mar/30409/185458.jpeg";
UrlEnum["SectoralUrl"] = "https://sectors.rajasthan.gov.in/";
UrlEnum["DepartmentUrl"] = "https://department.rajasthan.gov.in/home/dptHome/";
UrlEnum["GoogleMapUrl"] = "https://maps.google.com/maps?q={lattitude},{longitude}";
return UrlEnum;
}({});
var WebTemplateEnum =
/*@__PURE__*/
function (WebTemplateEnum) {
WebTemplateEnum["University"] = "template-university";
return WebTemplateEnum;
}({});
/***/
},
/***/
"AytR":
/***/
function AytR(module, __webpack_exports__, __webpack_require__) {
"use strict"; // CONCATENATED MODULE: ./src/environments/timestamp/build-timestamp-departmentmask.ts
var BUILD_TIMESTAMP = '2026-02-23T12:48:17.140+05:30'; // CONCATENATED MODULE: ./src/environments/environment.ts
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return environment;
});
var environment = {
production: true,
buildTimestamp: BUILD_TIMESTAMP,
LoginEnable: false,
// ApiBaseUrl: 'https://departmentfrontwebapi.rajasthan.gov.in/',
// JanRWApiBaseUrl: 'https://departmentfrontwebapi.rajasthan.gov.in',
ApiBaseUrl: 'https://departmentfrontwebapi.rajasthan.gov.in/',
JanRWApiBaseUrl: 'https://jankalyanapi.rajasthan.gov.in/',
AdvertisementUrl: 'https://rajadvt.rajasthan.gov.in/',
AppUrl: "https://department.rajasthan.gov.in/",
MissionApiBaseUrl: 'https://mission2030api.rajasthan.gov.in/',
Raj_Sampark_Url: "https://sampark.rajasthan.gov.in/",
isHashUrl: false,
DateFormat: "dd MMM yyyy",
DatePickerFormat: 'DD-MMM-YYYY',
HereMapId: 'y1qZcFw8oEW25G18GfiP',
HereMapCode: 'GSQ1fq6a1sJpE3BEoCILCw',
HereMapLatitude: 27.391277,
HereMapLongitude: 73.432617,
HereMapLayerState: 'STATE_DOIT',
RendomColor: '#' + (0x1000000 + Math.random() * 0xffffff).toString(16).substr(1, 6),
IsCMISMenuVisible: false,
MinimumDate: new Date("2018-12-17"),
isDemo: false,
LocalWebsiteCode: "4444",
FlipBookUrl: 'https://dipr.rajasthan.gov.in/FlipBook/flipbook.html?Pdfurl=',
counterTimer: 60
};
/***/
},
/***/
"Cfvw":
/***/
function Cfvw(module, __webpack_exports__, __webpack_require__) {
"use strict"; // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Observable.js + 2 modules
var Observable = __webpack_require__("HDdC"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js + 3 modules
var subscribeTo = __webpack_require__("SeVD"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Subscription.js + 1 modules
var Subscription = __webpack_require__("quSY"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/symbol/observable.js
var symbol_observable = __webpack_require__("kJWO"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleObservable.js
function scheduleObservable(input, scheduler) {
return new Observable["a"
/* Observable */
](function (subscriber) {
var sub = new Subscription["a"
/* Subscription */
]();
sub.add(scheduler.schedule(function () {
var observable = input[symbol_observable["a"
/* observable */
]]();
sub.add(observable.subscribe({
next: function next(value) {
sub.add(scheduler.schedule(function () {
return subscriber.next(value);
}));
},
error: function error(err) {
sub.add(scheduler.schedule(function () {
return subscriber.error(err);
}));
},
complete: function complete() {
sub.add(scheduler.schedule(function () {
return subscriber.complete();
}));
}
}));
}));
return sub;
});
} //# sourceMappingURL=scheduleObservable.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/scheduled/schedulePromise.js
function schedulePromise(input, scheduler) {
return new Observable["a"
/* Observable */
](function (subscriber) {
var sub = new Subscription["a"
/* Subscription */
]();
sub.add(scheduler.schedule(function () {
return input.then(function (value) {
sub.add(scheduler.schedule(function () {
subscriber.next(value);
sub.add(scheduler.schedule(function () {
return subscriber.complete();
}));
}));
}, function (err) {
sub.add(scheduler.schedule(function () {
return subscriber.error(err);
}));
});
}));
return sub;
});
} //# sourceMappingURL=schedulePromise.js.map
// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleArray.js
var scheduleArray = __webpack_require__("jZKg"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/symbol/iterator.js
var symbol_iterator = __webpack_require__("Lhse"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleIterable.js
function scheduleIterable(input, scheduler) {
if (!input) {
throw new Error('Iterable cannot be null');
}
return new Observable["a"
/* Observable */
](function (subscriber) {
var sub = new Subscription["a"
/* Subscription */
]();
var iterator;
sub.add(function () {
if (iterator && typeof iterator["return"] === 'function') {
iterator["return"]();
}
});
sub.add(scheduler.schedule(function () {
iterator = input[symbol_iterator["a"
/* iterator */
]]();
sub.add(scheduler.schedule(function () {
if (subscriber.closed) {
return;
}
var value;
var done;
try {
var result = iterator.next();
value = result.value;
done = result.done;
} catch (err) {
subscriber.error(err);
return;
}
if (done) {
subscriber.complete();
} else {
subscriber.next(value);
this.schedule();
}
}));
}));
return sub;
});
} //# sourceMappingURL=scheduleIterable.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/isInteropObservable.js
function isInteropObservable(input) {
return input && typeof input[symbol_observable["a"
/* observable */
]] === 'function';
} //# sourceMappingURL=isInteropObservable.js.map
// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/isPromise.js
var isPromise = __webpack_require__("c2HN"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js
var isArrayLike = __webpack_require__("I55L"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/isIterable.js
function isIterable(input) {
return input && typeof input[symbol_iterator["a"
/* iterator */
]] === 'function';
} //# sourceMappingURL=isIterable.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/scheduled/scheduled.js
function scheduled(input, scheduler) {
if (input != null) {
if (isInteropObservable(input)) {
return scheduleObservable(input, scheduler);
} else if (Object(isPromise["a"
/* isPromise */
])(input)) {
return schedulePromise(input, scheduler);
} else if (Object(isArrayLike["a"
/* isArrayLike */
])(input)) {
return Object(scheduleArray["a"
/* scheduleArray */
])(input, scheduler);
} else if (isIterable(input) || typeof input === 'string') {
return scheduleIterable(input, scheduler);
}
}
throw new TypeError((input !== null && typeof input || input) + ' is not observable');
} //# sourceMappingURL=scheduled.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/observable/from.js
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return from;
});
function from(input, scheduler) {
if (!scheduler) {
if (input instanceof Observable["a"
/* Observable */
]) {
return input;
}
return new Observable["a"
/* Observable */
](Object(subscribeTo["a"
/* subscribeTo */
])(input));
} else {
return scheduled(input, scheduler);
}
} //# sourceMappingURL=from.js.map
/***/
},
/***/
"DH7j":
/***/
function DH7j(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return isArray;
});
var isArray =
/*@__PURE__*/
function () {
return Array.isArray || function (x) {
return x && typeof x.length === 'number';
};
}(); //# sourceMappingURL=isArray.js.map
/***/
},
/***/
"DiM6":
/***/
function DiM6(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AchievementAwardService;
});
/* harmony import */
var _Model_app_setting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GAWG");
/* harmony import */
var _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ADQb");
/* harmony import */
var _Enum_achievement_category_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("uIW0");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("MLVi");
var AchievementAwardService =
/*@__PURE__*/
function () {
var AchievementAwardService =
/*#__PURE__*/
function () {
function AchievementAwardService(_baseService) {
_classCallCheck(this, AchievementAwardService);
this._baseService = _baseService;
this.achievementEnum = _Enum_achievement_category_enum__WEBPACK_IMPORTED_MODULE_2__[
/* AchievementCategoryEnum */
"a"];
}
return _createClass2(AchievementAwardService, [{
key: "GetAchievementListData",
value: function GetAchievementListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementListurl, model);
}
}, {
key: "GetAwardListData",
value: function GetAwardListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAwardListUrl, model);
}
}, {
key: "GetUpcomingEventListData",
value: function GetUpcomingEventListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetUpcomingEventListUrl, model);
}
}, {
key: "GetPublicationsListData",
value: function GetPublicationsListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetPublicationsListUrl, model);
}
}, {
key: "GetAnnualProgressReportListData",
value: function GetAnnualProgressReportListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAnnualProgramListUrl, model);
}
}, {
key: "GetDetailById",
value: function GetDetailById(id) {
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__[
/* Dictionary */
"a"]();
param.Add("id", id);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementDetailurl, param);
}
}, {
key: "GetSubCategoryGroupAchievementListData",
value: function GetSubCategoryGroupAchievementListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementListGroupBySubCategoryurl, model);
}
}, {
key: "GetCategoryGroupAchievementListData",
value: function GetCategoryGroupAchievementListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementListGroupByCategoryUrl, model);
}
}, {
key: "GetDepartMetGroupAchievementListData",
value: function GetDepartMetGroupAchievementListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementListGroupByDepartmenturl, model);
}
}, {
key: "GetDepartMetGroupImportantDecisionData",
value: function GetDepartMetGroupImportantDecisionData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetImportantDecisionListGroupByDepartmenturl, model);
}
}, {
key: "GetCategoryWiseListData",
value: function GetCategoryWiseListData(id, model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetCategoryWiseListDataURL + id, model);
}
}, {
key: "GetDepartmentWiseListData",
value: function GetDepartmentWiseListData(id, model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetDepartmentWiseListDataURL + id, model);
}
}, {
key: "GetListDataByCatId",
value: function GetListDataByCatId(id, model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementByCatId + id, model);
}
}, {
key: "GetNewsTickerListData",
value: function GetNewsTickerListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetNewsTickerListUrl, model);
}
}, {
key: "GetExternalLinkList",
value: function GetExternalLinkList(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetExternalLinkList, model);
}
}, {
key: "GetBannerData",
value: function GetBannerData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].BannerListUrl, model);
}
}, {
key: "GetImportantDecisionListData",
value: function GetImportantDecisionListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementImportantDecisionListurl, model);
}
}, {
key: "GetPostersListData",
value: function GetPostersListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetPostersListurl, model);
}
}, {
key: "GetAudioListData",
value: function GetAudioListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAudioListurl, model);
}
}, {
key: "GetAdvertisementListData",
value: function GetAdvertisementListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAdvertisementListurl, model);
}
}, {
key: "GetVideoListData",
value: function GetVideoListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetVideoListurl, model);
}
}, {
key: "GetServicesOfferedbyDepartmentListData",
value: function GetServicesOfferedbyDepartmentListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementByCatId + this.achievementEnum.ServicesOfferedbyDepartmentCode, model);
}
}, {
key: "GetWebApplicationListData",
value: function GetWebApplicationListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementByCatId + this.achievementEnum.WebsiteCode, model);
}
}, {
key: "GetMobileApplicationListData",
value: function GetMobileApplicationListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementByCatId + this.achievementEnum.MobileApplicationCode, model);
}
}, {
key: "GetProgramVideoListData",
value: function GetProgramVideoListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementByCatId + this.achievementEnum.ProgramVideoCode, model);
}
}, {
key: "GetCMSpeechListData",
value: function GetCMSpeechListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementByCatId + this.achievementEnum.CMSpeechCode, model);
}
}, {
key: "GetLetterstoCentralGovtListData",
value: function GetLetterstoCentralGovtListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementByCatId + this.achievementEnum.LetterstoCentralGovtCode, model);
}
}, {
key: "GetAchievementListBySearchFilterData",
value: function GetAchievementListBySearchFilterData(model) {
var isRequiredAttachImages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
return this._baseService.post("".concat(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementListBySearchFilter, "?isRequiredAttachImages=").concat(isRequiredAttachImages), model);
}
}, {
key: "GetIndiaPortalDetail",
value: function GetIndiaPortalDetail(placeId) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetIndiaPortalDetailUrl + '?placeId=' + placeId);
}
}, {
key: "GetPubicUtilityCount",
value: function GetPubicUtilityCount(depId) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetPubicUtilityCountUrl + '?depId=' + depId + '&department=true');
}
}, {
key: "GetCategoryWisePubicUtilityUrl",
value: function GetCategoryWisePubicUtilityUrl(dptCode, categoryCode, id) {
if (id > 0) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetCategoryWisePubicUtilityUrl + '?deptCode=' + dptCode + '&categoryCode=' + categoryCode + '&id=' + id + '&isdept=true');
} else {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetCategoryWisePubicUtilityUrl + '?deptCode=' + dptCode + '&categoryCode=' + categoryCode + '&id=' + 0 + '&isdept=true');
}
}
}, {
key: "GetDDLForAchievementActiveDepartmentByCatId",
value: function GetDDLForAchievementActiveDepartmentByCatId(categoryCode) {
var adminCode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__[
/* Dictionary */
"a"]();
param.Add("id", categoryCode);
param.Add("adminCode", adminCode);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetDDLForAchievementActiveDepartmentByCatId, param);
}
}, {
key: "GetDDLForAchievementActiveAdminDepartmentByCatId",
value: function GetDDLForAchievementActiveAdminDepartmentByCatId(categoryCode) {
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__[
/* Dictionary */
"a"]();
param.Add("id", categoryCode);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetDDLForAchievementActiveAdminDepartmentByCatId, param);
}
}, {
key: "GetAchievementAttachmentsByDepartmentCode",
value: function GetAchievementAttachmentsByDepartmentCode(dptdeCo, categoryCode) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].AchievementAttachmentsByDepartmentCodeURL + dptdeCo + '&categoryCode=' + categoryCode);
}
}, {
key: "GetAcievementCatDetail",
value: function GetAcievementCatDetail(id) {
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__[
/* Dictionary */
"a"]();
param.Add('id', id);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementCatDetailUrl, param);
}
}, {
key: "GetAcievementSubCatDetail",
value: function GetAcievementSubCatDetail(id) {
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_1__[
/* Dictionary */
"a"]();
param.Add('id', id);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAchievementSubCatDetailUrl, param);
} //Need to writer into another class
}, {
key: "GetAdaUserFeedbackData",
value: function GetAdaUserFeedbackData(model) {
var isRequiredAttachImages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
return this._baseService.post("".concat(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAdaUserFeedbackListBySearchFilter, "?isRequiredAttachImages=").concat(isRequiredAttachImages), model);
}
}]);
}();
AchievementAwardService.ɵfac = function AchievementAwardService_Factory(t) {
return new (t || AchievementAwardService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵinject */
"ec"](_base_service__WEBPACK_IMPORTED_MODULE_4__[
/* BaseService */
"a"]));
};
AchievementAwardService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__[
/* ɵɵdefineInjectable */
"Rb"]({
token: AchievementAwardService,
factory: AchievementAwardService.ɵfac,
providedIn: 'root'
});
return AchievementAwardService;
}();
/***/
},
/***/
"Dxa7":
/***/
function Dxa7(module, exports, __webpack_require__) {
"use strict";
var __extends = this && this.__extends ||
/*@__PURE__*/
function () {
var _extendStatics2 = function extendStatics(d, b) {
_extendStatics2 = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function (d, b) {
d.__proto__ = b;
} || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
};
return _extendStatics2(d, b);
};
return function (d, b) {
_extendStatics2(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var Subscriber_1 =
/*@__PURE__*/
__webpack_require__("FWf1");
var ArgumentOutOfRangeError_1 =
/*@__PURE__*/
__webpack_require__("IKal");
var empty_1 =
/*@__PURE__*/
__webpack_require__("aJGj");
function take(count) {
return function (source) {
if (count === 0) {
return empty_1.empty();
} else {
return source.lift(new TakeOperator(count));
}
};
}
exports.take = take;
var TakeOperator =
/*@__PURE__*/
function () {
function TakeOperator(total) {
this.total = total;
if (this.total < 0) {
throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError();
}
}
TakeOperator.prototype.call = function (subscriber, source) {
return source.subscribe(new TakeSubscriber(subscriber, this.total));
};
return TakeOperator;
}();
var TakeSubscriber =
/*@__PURE__*/
function (_super) {
__extends(TakeSubscriber, _super);
function TakeSubscriber(destination, total) {
var _this = _super.call(this, destination) || this;
_this.total = total;
_this.count = 0;
return _this;
}
TakeSubscriber.prototype._next = function (value) {
var total = this.total;
var count = ++this.count;
if (count <= total) {
this.destination.next(value);
if (count === total) {
this.destination.complete();
this.unsubscribe();
}
}
};
return TakeSubscriber;
}(Subscriber_1.Subscriber);
/***/
},
/***/
"DxiF":
/***/
function DxiF(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return OrderComponent;
});
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
/* harmony import */
var src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Lexf");
/* harmony import */
var src_app_Shared_Model_app_setting__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("GAWG");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("AytR");
/* harmony import */
var src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("T5CN");
/* harmony import */
var src_app_Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("RVz6");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("fXoL");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("t7Da");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("LYBR");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("jhN1");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("qVlC");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("ofXK");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("3Pt+");
/* harmony import */
var ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("hzby");
/* harmony import */
var ngx_pagination__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("oOf3");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("GmSP");
/* harmony import */
var src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("/9+q");
function OrderComponent_li_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "li", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "Documents_txt"), "");
}
}
function OrderComponent_li_7_span_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r443 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" - ", ctx_r443.translate.currentLang != "en" ? ctx_r443.subTypeTitle.NameHindi : ctx_r443.subTypeTitle.NameEnglish, " ");
}
}
function OrderComponent_li_7_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r444 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" (", ctx_r444.translate.currentLang != "en" ? ctx_r444.lookupTypeTitle.NameHindi : ctx_r444.lookupTypeTitle.NameEnglish, ") ");
}
}
function OrderComponent_li_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "li", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](2, OrderComponent_li_7_span_2_Template, 2, 1, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](3, OrderComponent_li_7_span_3_Template, 2, 1, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r414 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r414.translate.currentLang != "en" ? ctx_r414.pageTitle.NameHindi : ctx_r414.pageTitle.NameEnglish, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r414.submenuCode && ctx_r414.subTypeTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r414.submenuCode && ctx_r414.lookupTypeTitle);
}
}
function OrderComponent_div_12_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r446 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("value", item_r446.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](item_r446.Text);
}
}
function OrderComponent_div_12_Template(rf, ctx) {
if (rf & 1) {
var _r448 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_12_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r448);
var ctx_r447 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r447.model.DistrictCode = $event;
})("change", function OrderComponent_div_12_Template_select_change_4_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r448);
var ctx_r449 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r449.getOffices();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_div_12_option_8_Template, 2, 2, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r415 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "District_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r415.model.DistrictCode);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "District_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r415.dDLList == null ? null : ctx_r415.dDLList.ddlDistrict);
}
}
function OrderComponent_div_13_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r451 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("value", item_r451.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](item_r451.Text);
}
}
function OrderComponent_div_13_Template(rf, ctx) {
if (rf & 1) {
var _r453 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_13_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r453);
var ctx_r452 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r452.model.OfficeCatCode = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_div_13_option_8_Template, 2, 2, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r416 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "OfficeCategorty_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r416.model.OfficeCatCode);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "OfficeCategorty_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r416.dDLList == null ? null : ctx_r416.dDLList.ddlOfficeCategory);
}
}
function OrderComponent_div_14_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r455 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("value", item_r455.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](item_r455.Text);
}
}
function OrderComponent_div_14_Template(rf, ctx) {
if (rf & 1) {
var _r457 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_14_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r457);
var ctx_r456 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r456.model.OfficeCode = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_div_14_option_8_Template, 2, 2, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r417 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "Office_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r417.model.OfficeCode);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "Office_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r417.ddlOffice);
}
}
function OrderComponent_div_15_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r459 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("value", item_r459.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](item_r459.Text);
}
}
function OrderComponent_div_15_Template(rf, ctx) {
if (rf & 1) {
var _r461 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_15_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r461);
var ctx_r460 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r460.model.DesignationCode = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_div_15_option_8_Template, 2, 2, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r418 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "Designation"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r418.model.DesignationCode);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "Designation"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r418.dDLList == null ? null : ctx_r418.dDLList.ddlDptContactDesignation);
}
}
function OrderComponent_div_16_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r463 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("value", item_r463.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](item_r463.Text);
}
}
function OrderComponent_div_16_Template(rf, ctx) {
if (rf & 1) {
var _r465 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_16_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r465);
var ctx_r464 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r464.model.Type = $event;
})("change", function OrderComponent_div_16_Template_select_change_4_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r465);
var ctx_r466 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r466.GetSubType();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_div_16_option_8_Template, 2, 2, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r419 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "Type_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r419.model.Type);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "Type_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r419.dDLList == null ? null : ctx_r419.dDLList.ddlOrderType);
}
}
function OrderComponent_span_19_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "SubType_txt"), " ");
}
}
function OrderComponent_span_20_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "DocumentType_txt"), " ");
}
}
function OrderComponent_option_22_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "SubType_txt"), "--");
}
}
function OrderComponent_option_23_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "DocumentType_txt"), "--");
}
}
function OrderComponent_option_24_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r467 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngValue", item_r467.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r467.Text, "");
}
}
function OrderComponent_span_27_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "LookupType_txt"), " ");
}
}
function OrderComponent_span_28_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "SchemeProgram_txt"), " ");
}
}
function OrderComponent_option_30_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "LookupType_txt"), "--");
}
}
function OrderComponent_option_31_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "SchemeProgram_txt"), "--");
}
}
function OrderComponent_option_32_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r468 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngValue", item_r468.Id);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r468.Lookup, "");
}
}
function OrderComponent_div_33_Template(rf, ctx) {
if (rf & 1) {
var _r470 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "input", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_33_Template_input_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r470);
var ctx_r469 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r469.model.OrderNo = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r430 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 3, "OrderCircularNotificationPolicyNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](5, 5, "OrderCircularNotificationPolicyNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r430.model.OrderNo);
}
}
function OrderComponent_div_34_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r472 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngValue", item_r472.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r472.Text, "");
}
}
function OrderComponent_div_34_Template(rf, ctx) {
if (rf & 1) {
var _r474 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_34_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r474);
var ctx_r473 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r473.model.BeneficiaryCategory = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_div_34_option_8_Template, 2, 2, "option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r431 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "BeneficiaryCategory_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r431.model.BeneficiaryCategory);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "BeneficiaryCategory_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r431.dDLList == null ? null : ctx_r431.dDLList.ddlBeneficiaryCategory);
}
}
function OrderComponent_div_53_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r476 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("value", item_r476.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r476.Text, " ");
}
}
function OrderComponent_div_53_Template(rf, ctx) {
if (rf & 1) {
var _r478 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_53_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r478);
var ctx_r477 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r477.model.DeptSectionCode = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_div_53_option_8_Template, 2, 2, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r434 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "department_section_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r434.model.DeptSectionCode);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "department_section_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r434.ddlDptSection);
}
}
function OrderComponent_div_54_Template(rf, ctx) {
if (rf & 1) {
var _r480 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_54_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r480);
var ctx_r479 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r479.model.IndexModel.OrderBy = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6, "Date Of Issue");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](7, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](8, "Department");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](9, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](10, "Entry Number");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](11, "option", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](12, "Lookup");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](13, "option", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](14, "SubType");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](15, "option", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](16, "Title");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](17, "option", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](18, "Type");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](19, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](20, "DisplayOrder");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r435 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 2, "OrderBy_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r435.model.IndexModel.OrderBy);
}
}
function OrderComponent_div_55_Template(rf, ctx) {
if (rf & 1) {
var _r482 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_div_55_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r482);
var ctx_r481 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r481.model.IndexModel.OrderByAsc = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "option", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6, "Asc");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](7, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](8, "Desc");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r436 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 2, "OrderType_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r436.model.IndexModel.OrderByAsc);
}
}
function OrderComponent_h1_74_ng_container_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "LatestUpdatetitle_txt"), " ");
}
}
function OrderComponent_h1_74_ng_template_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](1, "translate");
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](1, 1, "Documents_txt"), " ");
}
}
function OrderComponent_h1_74_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "h1", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](1, "img", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](4, OrderComponent_h1_74_ng_container_4_Template, 3, 3, "ng-container", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](5, OrderComponent_h1_74_ng_template_5_Template, 2, 3, "ng-template", null, 60, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var _r484 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](6);
var ctx_r437 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 4, "Documents_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 6, "Documents_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r437.islatest)("ngIfElse", _r484);
}
}
function OrderComponent_h1_75_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r486 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("- ", ctx_r486.translate.currentLang != "en" ? ctx_r486.subTypeTitle.NameHindi : ctx_r486.subTypeTitle.NameEnglish, "");
}
}
function OrderComponent_h1_75_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r487 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" (", ctx_r487.translate.currentLang != "en" ? ctx_r487.lookupTypeTitle.NameHindi : ctx_r487.lookupTypeTitle.NameEnglish, ") ");
}
}
function OrderComponent_h1_75_Template(rf, ctx) {
if (rf & 1) {
var _r489 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "h1", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "img", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("error", function OrderComponent_h1_75_Template_img_error_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r489);
var ctx_r488 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
return ctx_r488.commonService.onImageError($event, "assets/images/document_Icon.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](3, OrderComponent_h1_75_span_3_Template, 2, 1, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](4, OrderComponent_h1_75_span_4_Template, 2, 1, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r438 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r438.translate.currentLang != "en" ? ctx_r438.pageTitle.NameHindi : ctx_r438.pageTitle.NameEnglish);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r438.translate.currentLang != "en" ? ctx_r438.pageTitle.NameHindi : ctx_r438.pageTitle.NameEnglish);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("src", ctx_r438.pageTitle == null ? null : ctx_r438.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r438.translate.currentLang != "en" ? ctx_r438.pageTitle.NameHindi : ctx_r438.pageTitle.NameEnglish, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r438.submenuCode && ctx_r438.subTypeTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r438.submenuCode && ctx_r438.lookupTypeTitle);
}
}
function OrderComponent_div_83_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "svg", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r439 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", ctx_r439.previousUrl.PreviousUrl, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](5, 2, "ViewArchiveData_txt"), " ");
}
}
function OrderComponent_ng_container_84_strong_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "Type_txt"), " / ");
}
}
function OrderComponent_ng_container_84_span_11_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "SubType_txt"), " ");
}
}
function OrderComponent_ng_container_84_span_12_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "DocumentType_txt"), " ");
}
}
function OrderComponent_ng_container_84_span_15_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "LookupName_txt"), " ");
}
}
function OrderComponent_ng_container_84_span_16_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "SchemeProgram_txt"), " ");
}
}
function OrderComponent_ng_container_84_ng_container_23_span_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "strong", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](4, " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](3, 1, "OrderNo_txt"), " ");
}
}
function OrderComponent_ng_container_84_ng_container_23_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_ng_container_23_span_1_Template, 5, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r495 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r495.orderPublicPortal[0] == null ? null : ctx_r495.orderPublicPortal[0].TypeDocumentNoMandatory) == ctx_r495.orderValDocEnum.Yes);
}
}
function OrderComponent_ng_container_84_ng_template_24_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](3, " / ");
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "OrderNo_txt"), " ");
}
}
function OrderComponent_ng_container_84_th_30_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "Department_txt"));
}
}
function OrderComponent_ng_container_84_tr_35_span_4_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "strong", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2).$implicit;
var ctx_r518 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r518.translate.currentLang != "en" ? item_r502.TypeNameHindi : item_r502.TypeName, " ");
}
}
function OrderComponent_ng_container_84_tr_35_span_4_ng_template_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "N/A");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function OrderComponent_ng_container_84_tr_35_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_tr_35_span_4_ng_container_1_Template, 3, 1, "ng-container", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](2, OrderComponent_ng_container_84_tr_35_span_4_ng_template_2_Template, 2, 0, "ng-template", null, 84, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var _r519 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](3);
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r502.TypeName || item_r502.TypeNameHindi)("ngIfElse", _r519);
}
}
function OrderComponent_ng_container_84_tr_35_ng_container_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r506 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r506.translate.currentLang != "en" ? item_r502.SubTypeNameHindi : item_r502.SubTypeName, " ");
}
}
function OrderComponent_ng_container_84_tr_35_ng_template_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "N/A");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function OrderComponent_ng_container_84_tr_35_strong_16_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "strong", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r502.OrderNo, " ");
}
}
function OrderComponent_ng_container_84_tr_35_td_20_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r510 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r510.translate.currentLang != "en" ? item_r502.DepartmentTitleHindi ? item_r502.DepartmentTitleHindi : item_r502.DepartmentTitle : item_r502.DepartmentTitle, " ");
}
}
function OrderComponent_ng_container_84_tr_35_ul_23_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "li", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "svg", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](4, "path", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var attachment_r527 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", attachment_r527.Path, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function OrderComponent_ng_container_84_tr_35_ul_23_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_tr_35_ul_23_ng_container_1_li_1_Template, 5, 1, "li", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var attachment_r527 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", attachment_r527.Path && attachment_r527.IsAnnexure == false);
}
}
function OrderComponent_ng_container_84_tr_35_ul_23_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "ul", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_tr_35_ul_23_ng_container_1_Template, 2, 1, "ng-container", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", item_r502.AttachmentList);
}
}
function OrderComponent_ng_container_84_tr_35_ul_24_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "li", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "svg", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](4, "path", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var attachment_r533 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", attachment_r533 == null ? null : attachment_r533.Path, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function OrderComponent_ng_container_84_tr_35_ul_24_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_tr_35_ul_24_ng_container_1_li_1_Template, 5, 1, "li", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var attachment_r533 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (attachment_r533 == null ? null : attachment_r533.Path) && attachment_r533.IsAnnexure == true);
}
}
function OrderComponent_ng_container_84_tr_35_ul_24_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "ul", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_tr_35_ul_24_ng_container_1_Template, 2, 1, "ng-container", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", item_r502.AttachmentList);
}
}
function OrderComponent_ng_container_84_tr_35_ul_25_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "li", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "a", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "svg", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](4, "path", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var attachment_r539 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", attachment_r539 == null ? null : attachment_r539.Path, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function OrderComponent_ng_container_84_tr_35_ul_25_ng_container_1_a_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "a", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "svg", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](2, "path", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var attachment_r539 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", attachment_r539 == null ? null : attachment_r539.Path, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function OrderComponent_ng_container_84_tr_35_ul_25_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_tr_35_ul_25_ng_container_1_li_1_Template, 5, 1, "li", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](2, OrderComponent_ng_container_84_tr_35_ul_25_ng_container_1_a_2_Template, 4, 1, "a", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var attachment_r539 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (attachment_r539 == null ? null : attachment_r539.Path) && attachment_r539.IsAnnexure == false && attachment_r539.Extension == ".pdf");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", attachment_r539.Extension != ".pdf");
}
}
function OrderComponent_ng_container_84_tr_35_ul_25_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "ul", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](1, OrderComponent_ng_container_84_tr_35_ul_25_ng_container_1_Template, 3, 2, "ng-container", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", item_r502.AttachmentList);
}
}
function OrderComponent_ng_container_84_tr_35_a_26_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "a", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "svg", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](2, "path", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r502 == null ? null : item_r502.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function OrderComponent_ng_container_84_tr_35_a_27_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "a", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "svg", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](2, "path", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](3, "path", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r502 == null ? null : item_r502.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function OrderComponent_ng_container_84_tr_35_a_28_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "a", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "svg", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](2, "path", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r502 == null ? null : item_r502.Url, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function OrderComponent_ng_container_84_tr_35_a_29_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "a", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var group_r504 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate1 */
"vc"]("routerLink", "/order/detail/", group_r504.Id, "");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](2, 2, "ViewDetail_txt"));
}
}
function OrderComponent_ng_container_84_tr_35_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "tr", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](4, OrderComponent_ng_container_84_tr_35_span_4_Template, 4, 2, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](6, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](7, OrderComponent_ng_container_84_tr_35_ng_container_7_Template, 2, 1, "ng-container", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_ng_container_84_tr_35_ng_template_8_Template, 2, 0, "ng-template", null, 77, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](10, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](12, "strong", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](14, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](16, OrderComponent_ng_container_84_tr_35_strong_16_Template, 2, 1, "strong", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](17, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](18, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](20, OrderComponent_ng_container_84_tr_35_td_20_Template, 2, 1, "td", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](21, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](22, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](23, OrderComponent_ng_container_84_tr_35_ul_23_Template, 2, 1, "ul", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](24, OrderComponent_ng_container_84_tr_35_ul_24_Template, 2, 1, "ul", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](25, OrderComponent_ng_container_84_tr_35_ul_25_Template, 2, 1, "ul", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](26, OrderComponent_ng_container_84_tr_35_a_26_Template, 4, 1, "a", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](27, OrderComponent_ng_container_84_tr_35_a_27_Template, 4, 1, "a", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](28, OrderComponent_ng_container_84_tr_35_a_28_Template, 3, 1, "a", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](29, OrderComponent_ng_container_84_tr_35_a_29_Template, 3, 4, "a", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r502 = ctx.$implicit;
var i_r503 = ctx.index;
var _r507 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](9);
var ctx_r499 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", (ctx_r499.indexModel.Page - 1) * ctx_r499.indexModel.PageSize + (i_r503 + 1), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r499.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r502.SubTypeName || item_r502.SubTypeNameHindi)("ngIfElse", _r507);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r499.translate.currentLang != "en" ? item_r502.LookupNameHindi : item_r502.LookupName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind2 */
"pc"](14, 16, item_r502.Date, ctx_r499.DateFormat));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r502.TypeDocumentNoMandatory == ctx_r499.orderValDocEnum.Yes);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](item_r502.Title);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r499.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r502.AttachmentList && item_r502.AttachmentList.length > 0 && item_r502.IsOldOrder == true && item_r502.IsAnnexure == false);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r502.AttachmentList && item_r502.AttachmentList.length > 0 && item_r502.IsOldOrder == false && item_r502.IsAnnexure == true);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r502.AttachmentList && item_r502.AttachmentList.length > 0 && item_r502.IsOldOrder == false && item_r502.IsAnnexure == false);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r499.isImage(item_r502.ImagePath));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r499.isPdf(item_r502.ImagePath));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", item_r502.Url);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r499.islatest);
}
}
function OrderComponent_ng_container_84_div_37_option_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function OrderComponent_ng_container_84_div_37_option_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "25");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function OrderComponent_ng_container_84_div_37_option_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function OrderComponent_ng_container_84_div_37_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "option", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](1, "100");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function OrderComponent_ng_container_84_div_37_Template(rf, ctx) {
if (rf & 1) {
var _r555 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "select", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_ng_container_84_div_37_Template_select_ngModelChange_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r555);
var ctx_r554 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r554.model.IndexModel.PageSize = $event;
})("change", function OrderComponent_ng_container_84_div_37_Template_select_change_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r555);
var ctx_r556 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r556.changePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](5, OrderComponent_ng_container_84_div_37_option_5_Template, 2, 0, "option", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](6, OrderComponent_ng_container_84_div_37_option_6_Template, 2, 0, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](7, OrderComponent_ng_container_84_div_37_option_7_Template, 2, 0, "option", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](8, OrderComponent_ng_container_84_div_37_option_8_Template, 2, 0, "option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](9, "pagination-controls", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("pageChange", function OrderComponent_ng_container_84_div_37_Template_pagination_controls_pageChange_9_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r555);
var ctx_r557 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r557.getNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](10, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](11, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r500 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r500.model.IndexModel.PageSize);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r500.totalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](4, 9, "All_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r500.totalRecords > 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r500.totalRecords > 25);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r500.totalRecords > 50);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r500.totalRecords > 100);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](10, 11, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](11, 13, "Next_txt"));
}
}
function OrderComponent_ng_container_84_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "table", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](5, "th", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](8, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](9, OrderComponent_ng_container_84_strong_9_Template, 3, 3, "strong", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](10, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](11, OrderComponent_ng_container_84_span_11_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](12, OrderComponent_ng_container_84_span_12_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](13, " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](14, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](15, OrderComponent_ng_container_84_span_15_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](16, OrderComponent_ng_container_84_span_16_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](17, "/ ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](18, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](19, "strong", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](21, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](22, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](23, OrderComponent_ng_container_84_ng_container_23_Template, 2, 1, "ng-container", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](24, OrderComponent_ng_container_84_ng_template_24_Template, 4, 3, "ng-template", null, 71, _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](26, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](27, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](29, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](30, OrderComponent_ng_container_84_th_30_Template, 3, 3, "th", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](31, "th", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](33, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](34, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](35, OrderComponent_ng_container_84_tr_35_Template, 30, 19, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](36, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](37, OrderComponent_ng_container_84_div_37_Template, 12, 15, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var _r496 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](25);
var ctx_r440 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](7, 14, "SrNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r440.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r440.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r440.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r440.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r440.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](21, 16, "DateofIssue_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r440.model == null ? null : ctx_r440.model.Type) > 0)("ngIfElse", _r496);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](29, 18, "Title_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r440.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](33, 20, "Documents_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind2 */
"pc"](36, 22, ctx_r440.orderPublicPortal, ctx_r440.pagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r440.totalRecords >= (ctx_r440.indexModel == null ? null : ctx_r440.indexModel.PageSize));
}
}
function OrderComponent_app_mini_loader_85_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function OrderComponent_app_no_records_86_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 116);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
var _c0 = function _c0(a1) {
return {
containerClass: "theme-dark-blue",
dateInputFormat: a1,
showWeekNumbers: false
};
};
var OrderComponent =
/*@__PURE__*/
function () {
var OrderComponent =
/*#__PURE__*/
function () {
function OrderComponent(route, router, orderService, commonService, translate, _orderService, _titleService, sanitizer, _distDeptService) {
_classCallCheck(this, OrderComponent);
this.route = route;
this.router = router;
this.orderService = orderService;
this.commonService = commonService;
this.translate = translate;
this._orderService = _orderService;
this._titleService = _titleService;
this.sanitizer = sanitizer;
this._distDeptService = _distDeptService;
this.pageName = "";
this.orderTypeCode = 0;
this.orderSubTypeCode = 0;
this.lookupCode = 0;
this.offCatCode = 0;
this.sectionCode = 0;
this.indexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.totalRecords = 0;
this.model = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_1__[
/* OrderEntryfrontModel */
"d"]();
this.dDLList = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* DDLModel */
"b"]();
this.DateFormat = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__[
/* environment */
"a"].DateFormat;
this.DatePickerFormat = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__[
/* environment */
"a"].DatePickerFormat;
this.minimumDate = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__[
/* environment */
"a"].MinimumDate;
this.ddlDepartment = [];
this.orderValDocEnum = src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_4__[
/* OrderTypeValidationForDocNoEnum */
"f"];
this.orderTypeEnum = src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_4__[
/* OrderTypeEnum */
"e"];
this.isStatePolicy = false;
this.ddlOrderSubType = [];
this.lookupList = [];
this.previousUrlList = [];
this.previousUrl = undefined;
this.ddlOffice = [];
this.isLatest = false;
this.submenuCode = 0;
this.ddlDptSection = [];
this.lookupEnum = src_app_Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_5__[
/* LookupEnum */
"a"];
this.isOptimized = false;
this.islatest = 0;
if (this.router.url.split('/')[3] == 'latest') {
this.isLatest = true;
}
if (this.router.url.split('/')[3] == 'optimized') {
this.isOptimized = true;
this.GetLookupListForOptimized();
}
}
return _createClass2(OrderComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this63 = this;
this.getOffices();
this.route.paramMap.subscribe(function (params) {
_this63.pageName = '';
_this63.indexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
_this63.totalRecords = 0;
_this63.orderPublicPortal = [];
_this63.model = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_1__[
/* OrderEntryfrontModel */
"d"]();
_this63.subTypeTitle = undefined;
_this63.dDLList = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* DDLModel */
"b"]();
_this63.filterDDlModel = [];
_this63.ddlDepartment = [];
_this63.isStatePolicy = false;
_this63.ddlOrderSubType = [];
_this63.previousUrl = undefined;
_this63.indexModel.OrderBy = 'Date';
_this63.indexModel.PageSize = 10;
_this63.pageTitle = undefined; // department-order/:dptCode/:typeCode/:subTypeCode/:lookupCode/:officeCode/:offCatCode/:sectionCode
var _deptCode = params.get("dptCode");
_this63.model.DepartmentCode = Number(_deptCode || _this63.commonService.GetWebDistDeptCode());
_this63.getSectionByDptCode(_this63.model.DepartmentCode);
var _typeCode = params.get('typeCode');
_this63.orderTypeCode = Number(_typeCode || 0);
var _subTypeCode = params.get('subTypeCode');
_this63.orderSubTypeCode = Number(_subTypeCode || 0);
var _lookupCode = params.get('lookupCode');
_this63.lookupCode = Number(_lookupCode || 0);
var _officeCode = params.get("officeCode");
_this63.model.OfficeCode = Number(_officeCode || 0);
var _offCatCode = params.get('offCatCode');
_this63.offCatCode = Number(_offCatCode || 0);
var _sectionCode = params.get('sectionCode');
_this63.sectionCode = Number(_sectionCode || 0);
var _submenuCode = params.get('submenuCode');
_this63.submenuCode = Number(_submenuCode || 0);
var url = _this63.router.url.replace('/', '').split('/');
_this63.pageName = url[url.length - 2];
if (_this63.pageName == 'state-policy') {
_this63.orderTypeCode = _this63.orderTypeEnum.Policy;
_this63.isStatePolicy = true;
}
if (_this63.pageName == 'latest') {
_this63.islatest = 1;
}
if (_this63.orderTypeCode) {
_this63.model.Type = String(_this63.orderTypeCode);
_this63.GetSubType();
}
if (_this63.orderSubTypeCode) {
_this63.model.SubTypeCode = String(_this63.orderSubTypeCode);
_this63.getOrderSubTypeDetail();
_this63.GetLookupList();
}
if (_this63.lookupCode) {
_this63.model.LookupCode = _this63.lookupCode;
}
if (_this63.offCatCode) {
_this63.model.OfficeCatCode = _this63.offCatCode;
}
if (_this63.sectionCode) {
_this63.model.DeptSectionCode = String(_this63.sectionCode);
}
_this63.pagerConfig = {
id: "order",
itemsPerPage: _this63.indexModel.PageSize,
currentPage: _this63.indexModel.Page,
totalItems: _this63.totalRecords
};
_this63.saveFilterAndGet();
_this63.getPreviousUrl();
setTimeout(function () {
_this63.GetDDLList();
}, 200);
_this63.getPageHeading();
});
}
}, {
key: "getPageHeading",
value: function getPageHeading() {
if (this.submenuCode > 0) {
this.getSubmenuDetail();
} else if (this.orderTypeCode > 0) {
this.getOrderTypeDetail();
}
}
}, {
key: "getSubmenuDetail",
value: function getSubmenuDetail() {
var _this64 = this;
this._distDeptService.GetSubmenuDetail(this.submenuCode).subscribe(function (res) {
if (res.IsSuccess) {
var submenu = res.Data;
if (submenu) {
_this64.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
_this64.pageTitle.NameEnglish = submenu.DisplayNameEnglish;
_this64.pageTitle.NameHindi = submenu.DisplayNameHindi;
_this64.pageTitle.ImagePath = submenu.IconImage;
_this64.commonService.SetWebTitle(_this64.translate.currentLang == 'hi' ? _this64.pageTitle.NameHindi : _this64.pageTitle.NameEnglish);
}
}
}, function (error) {});
}
}, {
key: "reset",
value: function reset() {
var _this65 = this;
this.model = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_1__[
/* OrderEntryfrontModel */
"d"]();
this.model.DepartmentCode = Number(this.commonService.GetWebDistDeptCode());
this.route.paramMap.subscribe(function (params) {
if (params.get('typeCode')) {
_this65.model.Type = String(params.get('typeCode'));
}
if (params.get('subTypeCode')) {
_this65.model.SubTypeCode = String(params.get('subTypeCode'));
}
});
sessionStorage.removeItem("isHistoryBack");
sessionStorage.removeItem("orderFilter");
this.saveFilterAndGet();
}
}, {
key: "getOrderTypeDetail",
value: function getOrderTypeDetail() {
var _this66 = this;
this._orderService.GetOrderTypeDetail(this.orderTypeCode).subscribe(function (data) {
if (data.IsSuccess) {
var orderType = data.Data;
if (orderType) {
_this66.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
if (_this66.isStatePolicy) {
_this66.pageTitle.NameEnglish = 'State Policy';
_this66.pageTitle.NameHindi = 'राज्य नीति';
} else {
_this66.pageTitle.NameEnglish = orderType.Name;
_this66.pageTitle.NameHindi = orderType.NameHindi;
}
_this66.pageTitle.ImagePath = orderType.ImagePath;
_this66.commonService.SetWebTitle(_this66.translate.currentLang == 'hi' ? _this66.pageTitle.NameHindi : _this66.pageTitle.NameEnglish);
}
}
}, function (error) {
console.error(error);
});
}
}, {
key: "getOrderSubTypeDetail",
value: function getOrderSubTypeDetail() {
var _this67 = this;
this._orderService.GetOrderSubTypeDetail(this.orderSubTypeCode).subscribe(function (data) {
if (data.IsSuccess) {
var orderSubType = data.Data;
if (orderSubType) {
_this67.subTypeTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
_this67.subTypeTitle.NameEnglish = orderSubType.Name;
_this67.subTypeTitle.NameHindi = orderSubType.NameHindi;
}
}
}, function (error) {
console.error(error);
});
}
}, {
key: "GetList",
value: function GetList() {
var _this68 = this;
debugger;
this.orderPublicPortal = undefined;
this.model.IndexModel = this.indexModel;
this.model.IsLatest = this.isLatest ? 1 : -1;
this.getFilter();
this.orderService.Get(this.model).subscribe(function (data) {
var _a, _b, _c, _d;
_this68.orderPublicPortal = [];
if (data.IsSuccess) {
_this68.orderPublicPortal = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.Data;
if (!_this68.indexModel.IsPostBack) {
_this68.totalRecords = (_d = (_c = data) === null || _c === void 0 ? void 0 : _c.Data) === null || _d === void 0 ? void 0 : _d.TotalRecords;
}
_this68.updatePageConfig();
} else {
_this68.totalRecords = 0;
} // this.IsLoading = false;
}, function (error) {
console.error(error.message);
_this68.orderPublicPortal = [];
});
}
}, {
key: "GetDDLList",
value: function GetDDLList() {
var _this69 = this;
if (sessionStorage.getItem("odrDDL") != undefined) {
this.dDLList = JSON.parse(sessionStorage.getItem("odrDDL"));
} else {
this._distDeptService.GetAllDDL(src_app_Shared_Model_app_setting__WEBPACK_IMPORTED_MODULE_2__[
/* AppSetting */
"a"].DDLKeyForOrderEntry).subscribe(function (data) {
var _a;
if (data.IsSuccess) {
_this69.dDLList = (_a = data) === null || _a === void 0 ? void 0 : _a.Data; //dDLList?.ddlAdminDepartmentOrder
//dDLList?.ddlDepartmentOrder
sessionStorage.setItem("odrDDL", JSON.stringify(_this69.dDLList));
}
}, function (error) {
console.error(error.message);
});
}
}
}, {
key: "GetSubType",
value: function GetSubType() {
var _this70 = this;
this.model.SubTypeCode = 0;
this.ddlOrderSubType = [];
if (Number(this.model.DepartmentCode || 0) > 0 || Number(this.model.Type || 0) > 0) {
this._distDeptService.GetOrderSubTypesByFilter(Number(this.model.Type), Number(this.model.DepartmentCode)).subscribe(function (data) {
if (data.IsSuccess) {
_this70.ddlOrderSubType = data.Data;
}
}, function (error) {// this._alertService.error(error.message);
});
}
}
}, {
key: "GetLookupList",
value: function GetLookupList() {
var _this71 = this;
console.log('Uploaded');
var id = this.model.SubTypeCode;
if (Number(this.model.SubTypeCode || 0) > 0) this._orderService.GetLookupTypeListByOrderDocumentSubTypeId(this.model.SubTypeCode).subscribe(function (data) {
if (data.IsSuccess) {
_this71.lookupList = data.Data;
if (_this71.lookupCode) {
_this71.lookupTypeTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
_this71.lookupTypeFiltered = data.Data.filter(function (x) {
return x.Id == _this71.lookupCode;
});
_this71.lookupTypeTitle.NameEnglish = _this71.lookupTypeFiltered[0].Lookup;
_this71.lookupTypeTitle.NameHindi = _this71.lookupTypeFiltered[0].NameHindi;
}
}
}, function (error) {
console.error(error.message);
});
}
}, {
key: "GetLookupListForOptimized",
value: function GetLookupListForOptimized() {
var _this72 = this;
this._orderService.GetLookupTypeListForOrderDocument().subscribe(function (data) {
if (data.IsSuccess) {
_this72.lookupList = data.Data;
}
}, function (error) {
console.error(error.message);
});
}
}, {
key: "saveFilterAndGet",
value: function saveFilterAndGet() {
this.saveFilter();
var IsLatestUpdate = JSON.parse(localStorage.getItem("IsLatestUpdate"));
if (IsLatestUpdate) {
var MinimumDate = new Date(new Date().getTime() - 15 * 24 * 60 * 60 * 1000);
var uTCDate = new Date(Date.UTC(new Date(MinimumDate).getFullYear(), new Date(MinimumDate).getMonth(), new Date(MinimumDate).getDate())).toISOString();
this.model.EntryFromDate = uTCDate;
}
this.GetList();
}
}, {
key: "getFilter",
value: function getFilter() {
if (JSON.parse(sessionStorage.getItem("isHistoryBack")) == true && sessionStorage.getItem("orderFilter") != undefined) {
sessionStorage.removeItem("isHistoryBack");
this.model = JSON.parse(sessionStorage.getItem("orderFilter"));
this.indexModel = this.model.IndexModel;
this.updatePageConfig();
if (Number(this.model.Type || 0) > 0 && Number(this.model.SubTypeCode || 0) == 0) {
this.GetSubType();
}
}
}
}, {
key: "saveFilter",
value: function saveFilter() {
this.model.IndexModel = this.indexModel;
sessionStorage.setItem("orderFilter", JSON.stringify(this.model));
}
}, {
key: "getPreviousUrl",
value: function getPreviousUrl() {
var _this73 = this;
if (this.model.DepartmentCode && this.model.Type) {
var deptCode = Number(this.model.DepartmentCode);
var typeCode = Number(this.model.Type);
var subTypeCode = Number(this.model.SubTypeCode) || 0;
var officeCode = this.model.OfficeCode ? Number(this.model.OfficeCode) : 0;
var lookupCode = this.model.LookupCode ? Number(this.model.LookupCode) : 0;
this._orderService.GetPreviousUrl(deptCode, officeCode, typeCode, subTypeCode, lookupCode).subscribe(function (response) {
if (response.IsSuccess) {
if (response.Data) {
_this73.previousUrlList = response.Data;
if (_this73.previousUrlList && _this73.previousUrlList.length > 0) {
_this73.previousUrl = _this73.previousUrlList[0];
if (_this73.previousUrl.PreviousUrl && _this73.previousUrl.UrlSourceCode == _this73.lookupEnum.OrderPreviousUrlSource_DepartmentPage) {
var deptPageCode = _this73.previousUrl.PreviousUrl.replace(/[^0-9]/g, '');
_this73.previousUrl.DepartmentPageCode = Number(deptPageCode || 0);
}
}
}
}
}, function (error) {//this._alertService.error(error.message);
});
}
} //#region paging
}, {
key: "getNextPageRecord",
value: function getNextPageRecord(page) {
window.scroll(0, 0);
this.indexModel.IsPostBack = true;
this.indexModel.Page = page;
this.saveFilterAndGet();
}
}, {
key: "changePageSize",
value: function changePageSize(value) {
window.scroll(0, 0);
this.indexModel.IsPostBack = true;
this.indexModel.PageSize = Number(value);
this.indexModel.Page = 1;
this.saveFilterAndGet();
}
}, {
key: "updatePageConfig",
value: function updatePageConfig() {
this.pagerConfig = {
itemsPerPage: this.indexModel.PageSize,
currentPage: this.indexModel.Page,
totalItems: this.totalRecords
};
} //#endregion
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
localStorage.removeItem("IsLatestUpdate");
}
}, {
key: "onChangepreviousUrl",
value: function onChangepreviousUrl() {
var _this74 = this;
if (this.model.DepartmentCode && this.model.Type && (this.model.SubTypeCode || this.model.LookupCode)) {
var orderPreviousUrllist = this.previousUrlList.filter(function (z) {
return z.DepartmentCode == Number(_this74.model.DepartmentCode) && z.TypeCode == Number(_this74.model.Type) && (z.SubTypeCode == _this74.model.SubTypeCode ? Number(_this74.model.SubTypeCode) : false || z.LookupCode == _this74.model.LookupCode ? Number(_this74.model.LookupCode) : 0);
});
if (orderPreviousUrllist && orderPreviousUrllist.length > 0) {
this.previousUrl = orderPreviousUrllist[0];
if (this.previousUrl.PreviousUrl && this.previousUrl.UrlSourceCode == this.lookupEnum.OrderPreviousUrlSource_DepartmentPage) {
var deptPageCode = this.previousUrl.PreviousUrl.replace(/[^0-9]/g, '');
this.previousUrl.DepartmentPageCode = Number(deptPageCode || 0);
}
}
}
}
}, {
key: "getOffices",
value: function getOffices() {
var _this75 = this;
if (this.commonService.GetWebDistDeptCode() > 0) {
this.commonService.GetOfficesFor(Number(this.commonService.GetWebDistDeptCode()), 0).subscribe(function (response) {
if (response.IsSuccess) {
_this75.ddlOffice = response.Data;
}
});
return;
}
}
}, {
key: "getSectionByDptCode",
value: function getSectionByDptCode(code) {
var _this76 = this;
this.commonService.GetDptSectionBydptCode(code).subscribe(function (data) {
if (data.IsSuccess) {
_this76.ddlDptSection = data.Data;
}
}, function (error) {});
}
}, {
key: "isPdf",
value: function isPdf(path) {
if (!path) return false;
return path.toLowerCase().endsWith('.pdf');
}
}, {
key: "isImage",
value: function isImage(path) {
if (!path) return false;
return /\.(jpg|jpeg|png|gif|webp)$/i.test(path);
}
}]);
}();
OrderComponent.ɵfac = function OrderComponent_Factory(t) {
return new (t || OrderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_7__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_7__[
/* Router */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_8__[
/* OrderService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_9__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_8__[
/* OrderService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__[
/* Title */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__[
/* DomSanitizer */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_12__[
/* DptDistrictWebsiteService */
"a"]));
};
OrderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdefineComponent */
"Pb"]({
type: OrderComponent,
selectors: [["app-order"]],
decls: 87,
vars: 68,
consts: [["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["class", "breadcrumb-item active", "aria-current", "page", 4, "ngIf"], [1, "order_page"], [1, "orders_filter"], [1, "container-fluid"], [1, "row", "justify-content-center"], ["class", "col-xl-3 col-lg-3 col-sm-6 col-12 wow fadeInUp", 4, "ngIf"], [1, "col-xl-3", "col-lg-3", "col-sm-6", "col-12", "wow", "fadeInUp"], [4, "ngIf"], [1, "form-control", 3, "ngModel", "ngModelChange", "change"], ["value", "0", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-control", 3, "ngModel", "change", "ngModelChange"], ["class", "col-xl-3 col-lg-3 col-sm-6 col-12 wow fadeInUp", 4, "ngIf"], [1, "col-xl-3", "col-lg-3", "col-sm-6", "col-12", "calendar-icon-date", "fadeInUp"], ["type", "text", "bsDatepicker", "", 1, "form-control", 3, "placeholder", "ngModel", "bsConfig", "minDate", "ngModelChange"], ["FromDate", "bsDatepicker"], [1, "fas", "fa-calendar-alt", 3, "click"], ["ToDate", "bsDatepicker"], [1, "input-group-addon"], [1, "glyphicon", "glyphicon-calendar"], [1, "col-lg-2", "col-sm-6", "col-12"], [1, "btn", "btn-success", "filter-btn", "d-block", "w-100", 2, "border", "none", 3, "click"], [1, "fas", "fa-search", "mr-2"], [1, "btn", "btn-danger", "filter-btn", "d-block", "w-100", 2, "border", "none", 3, "click"], [1, "fas", "fa-redo-alt", "mr-2"], [1, "order-list"], [1, "row"], [1, "col-xl-12"], ["class", "title text-center", 4, "ngIf"], [1, "row", "mb-5", "scheme_search", "align-items-center"], [1, "input-group", "col-md-5"], ["type", "search", "aria-label", "Search", 1, "form-control", 3, "ngModel", "placeholder", "ngModelChange"], [1, "input-group-append"], [1, "btn", 3, "click"], [1, "fas", "fa-search"], ["class", "col-md-7 text-right mt-3 mt-md-0", 4, "ngIf"], [3, "showImage", 4, "ngIf"], ["aria-current", "page", 1, "breadcrumb-item", "active"], ["value", "0"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "form-control", 3, "ngModel", "ngModelChange"], [3, "ngValue"], ["type", " text", 1, "form-control", 3, "ngModel", "placeholder", "ngModelChange"], ["value", "Date"], ["value", "Department"], ["value", "EntryNumber"], ["value", "Lookup"], ["value", "SubType"], ["value", "Title"], ["value", "Type"], ["value", "DisplayOrder"], ["value", "1"], [1, "title", "text-center"], ["src", "assets/images/document_Icon.png", 1, "img-fluid", 2, "max-width", "45px", 3, "title", "alt"], [4, "ngIf", "ngIfElse"], ["docTitle", ""], [1, "img-fluid", 2, "max-width", "45px", 3, "src", "title", "alt", "error"], [1, "col-md-7", "text-right", "mt-3", "mt-md-0"], ["target", "_blank", 1, "btn", "btn-theme", "btn-yellow", "py-2", 2, "font-size", "100%", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "20", "height", "20", "fill", "#fff", "viewBox", "0 0 16 16", 1, "mr-1"], ["d", "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855A7.97 7.97 0 0 0 5.145 4H7.5V1.077zM4.09 4a9.267 9.267 0 0 1 .64-1.539 6.7 6.7 0 0 1 .597-.933A7.025 7.025 0 0 0 2.255 4H4.09zm-.582 3.5c.03-.877.138-1.718.312-2.5H1.674a6.958 6.958 0 0 0-.656 2.5h2.49zM4.847 5a12.5 12.5 0 0 0-.338 2.5H7.5V5H4.847zM8.5 5v2.5h2.99a12.495 12.495 0 0 0-.337-2.5H8.5zM4.51 8.5a12.5 12.5 0 0 0 .337 2.5H7.5V8.5H4.51zm3.99 0V11h2.653c.187-.765.156-1.608.338-2.5H8.5zM5.145 12c.138.386.295.744.468 1.068.552 1.035 1.218 1.65 1.887 1.855V12H5.145zm.182 2.472a6.696 6.696 0 0 1-.597-.933A9.268 9.268 0 0 1 4.09 12H2.255a7.024 7.024 0 0 0 3.072 2.472zM3.82 11a13.652 13.652 0 0 1-.312-2.5h-2.49c.062.89.291 1.733.656 2.5H3.82zm6.853 3.472A7.024 7.024 0 0 0 13.745 12H11.91a9.27 9.27 0 0 1-.64 1.539 6.688 6.688 0 0 1-.597.933zM8.5 12v2.923c.67-.204 1.335-.82 1.887-1.855.173-.324.33-.682.468-1.068H8.5zm3.68-1h2.146c.365-.767.594-1.61.656-2.5h-2.49a13.65 13.65 0 0 1-.312 2.5zm2.802-3.5a6.959 6.959 0 0 0-.656-2.5H12.18c.174.782.282 1.623.312 2.5h2.49zM11.27 2.461c.247.464.462.98.64 1.539h1.835a7.024 7.024 0 0 0-3.072-2.472c.218.284.418.598.597.933zM10.855 4a7.966 7.966 0 0 0-.468-1.068C9.835 1.897 9.17 1.282 8.5 1.077V4h2.355z"], [1, "table-responsive"], [1, "table", "table-striped", "table-bordered", "table-new-design", "mx-100"], ["width", "80"], ["class", "badge badge-info", 4, "ngIf"], [1, "text-orange"], ["elseHeader", ""], [2, "width", "250px"], ["class", "hovercolor", 4, "ngFor", "ngForOf"], ["class", "new-pagination-outer", 4, "ngIf"], [1, "badge", "badge-info"], [1, "hovercolor"], ["blankSTypeName", ""], [1, "d-flex", "table-action-media-list", "align-items-center", "mb-2"], ["class", "image-list", 4, "ngIf"], ["title", "Document Image", "target", "_blank", "class", "text-info mr-2", 3, "href", 4, "ngIf"], ["title", "Document PDF", "target", "_blank", "class", "text-info mr-2", 3, "href", 4, "ngIf"], ["title", "Document Url", "target", "_blank", "class", "text-primary mr-2", 3, "href", 4, "ngIf"], ["style", "font-size: 100%;", "class", "btn btn-dark px-2 py-1", "title", "detail", 3, "routerLink", 4, "ngIf"], ["blankTypeName", ""], [1, "image-list"], [4, "ngFor", "ngForOf"], ["class", "", 4, "ngIf"], [1, ""], ["target", "_blank", "title", "first file", 1, "text-danger", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "50", "height", "50", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-file-earmark-pdf"], ["d", "M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z"], ["d", "M4.603 14.087a.81.81 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.157.526-.568.897-.787a7.68 7.68 0 0 1 1.482-.645 19.697 19.697 0 0 0 1.062-2.227 7.269 7.269 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a10.954 10.954 0 0 0 .98 1.686 5.753 5.753 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.856.856 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.712 5.712 0 0 1-.911-.95 11.651 11.651 0 0 0-1.997.406 11.157 11.157 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.793.793 0 0 1-.58.029zm1.379-1.901c-.166.076-.32.156-.459.238-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361.01.022.02.036.026.044a.266.266 0 0 0 .035-.012c.137-.056.355-.235.635-.572a8.18 8.18 0 0 0 .45-.606zm1.64-1.33a12.71 12.71 0 0 1 1.01-.193 11.744 11.744 0 0 1-.51-.858 20.801 20.801 0 0 1-.5 1.05zm2.446.45c.15.163.296.3.435.41.24.19.407.253.498.256a.107.107 0 0 0 .07-.015.157.157 0 0 0 .094-.125.436.436 0 0 0 .059-.2.095.095 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a3.876 3.876 0 0 0-.612-.053zM8.078 7.8a6.7 6.7 0 0 0 .2-.828c.031-.188.043-.343.038-.465a.613.613 0 0 0-.032-.198.517.517 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822.024.111.054.227.09.346z"], ["target", "_blank", "title", "Second file", 1, "text-danger", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "20", "height", "20", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-file-earmark-pdf"], ["class", "text-danger", "target", "_blank", "title", "Second file", 3, "href", 4, "ngIf"], ["xmlns", "http://www.w3.org/2000/svg", "width", "20", "height", "20", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-images"], ["d", "M4.502 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"], ["d", "M14.002 13a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2V5A2 2 0 0 1 2 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v8a2 2 0 0 1-1.998 2zM14 2H4a1 1 0 0 0-1 1h9.002a2 2 0 0 1 2 2v7A1 1 0 0 0 15 11V3a1 1 0 0 0-1-1zM2.002 4a1 1 0 0 0-1 1v8l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094l1.777 1.947V5a1 1 0 0 0-1-1h-10z"], ["title", "Document Image", "target", "_blank", 1, "text-info", "mr-2", 3, "href"], ["title", "Document PDF", "target", "_blank", 1, "text-info", "mr-2", 3, "href"], ["title", "Document Url", "target", "_blank", 1, "text-primary", "mr-2", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "20", "height", "20", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-globe2"], ["d", "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855-.143.268-.276.56-.395.872.705.157 1.472.257 2.282.287V1.077zM4.249 3.539c.142-.384.154-.744.481-1.078a6.7 6.7 0 0 1 .597-.933A7.01 7.01 0 0 0 3.051 3.05c.362.184.763.349 1.198.49zM3.509 7.5c.036-1.07.188-2.087.436-3.008a9.124 9.124 0 0 1-1.565-.667A6.964 6.964 0 0 0 1.018 7.5h2.49zm1.4-2.741a12.344 12.344 0 0 0-.4 2.741H7.5V5.091c-.91-.03-1.783-.145-2.591-.332zM8.5 5.09V7.5h2.99a12.342 12.342 0 0 0-.399-2.741c-.808.187-1.681.151-2.591.332zM4.51 8.5c.035.987.176 1.914.399 2.741A13.612 13.612 0 0 1 7.5 10.91V8.5H4.51zm3.99 0v2.409c.91.03 1.783.145 2.591.332.223-.827.364-1.754.4-2.741H8.5zm-3.282 3.696c.12.312.252.604.395.872.552 1.035 1.218 1.65 1.887 1.855V11.91c-.81.03-1.577.13-2.282.287zm.11 2.276a6.696 6.696 0 0 1-.598-.933 8.853 8.853 0 0 1-.481-1.079 8.38 8.38 0 0 0-1.198.49 7.01 7.01 0 0 0 2.276 1.522zm-1.383-2.964A13.36 13.36 0 0 1 3.508 8.5h-2.49a6.963 6.963 0 0 0 1.362 3.675c.47-.258.995-.482 1.565-.667zm6.728 2.964a7.009 7.009 0 0 0 2.275-1.521 8.376 8.376 0 0 0-1.197-.49 8.853 8.853 0 0 1-.481 1.078 6.688 6.688 0 0 1-.597.933zM8.5 11.909v3.014c.67-.204 1.335-.82 1.887-1.855.143-.268.276-.56.395-.872A12.63 12.63 0 0 0 8.5 11.91zm3.555-.401c.57.185 1.095.409 1.565.667A6.963 6.963 0 0 0 14.982 8.5h-2.49a13.36 13.36 0 0 1-.437 3.008zM14.982 7.5a6.963 6.963 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008h2.49zM11.27 2.461c.177.334.339.694.482 1.078a8.368 8.368 0 0 0 1.196-.49 7.01 7.01 0 0 0-2.275-1.52c.218.283.418.597.597.932zm-.488 1.343a7.765 7.765 0 0 0-.395-.872C9.835 1.897 9.17 1.282 8.5 1.077V4.09c.81-.03 1.577-.13 2.282-.287z"], ["title", "detail", 1, "btn", "btn-dark", "px-2", "py-1", 2, "font-size", "100%", 3, "routerLink"], [1, "new-pagination-outer"], ["name", "example_length", "aria-controls", "example", 1, "form-control-sm", 2, "width", "70px", 3, "ngModel", "ngModelChange", "change"], ["value", "10", 4, "ngIf"], ["value", "25", 4, "ngIf"], ["value", "50", 4, "ngIf"], ["value", "100", 4, "ngIf"], ["autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], ["value", "10"], ["value", "25"], ["value", "50"], ["value", "100"], [3, "showImage"]],
template: function OrderComponent_Template(rf, ctx) {
if (rf & 1) {
var _r558 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](0, "nav", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](1, "ol", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](6, OrderComponent_li_6_Template, 3, 3, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](7, OrderComponent_li_7_Template, 4, 3, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](8, "section", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](12, OrderComponent_div_12_Template, 9, 8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](13, OrderComponent_div_13_Template, 9, 8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](14, OrderComponent_div_14_Template, 9, 8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](15, OrderComponent_div_15_Template, 9, 8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](16, OrderComponent_div_16_Template, 9, 8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](17, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](18, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](19, OrderComponent_span_19_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](20, OrderComponent_span_20_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](21, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_Template_select_ngModelChange_21_listener($event) {
return ctx.model.SubTypeCode = $event;
})("change", function OrderComponent_Template_select_change_21_listener() {
ctx.GetLookupList();
return ctx.onChangepreviousUrl();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](22, OrderComponent_option_22_Template, 3, 3, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](23, OrderComponent_option_23_Template, 3, 3, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](24, OrderComponent_option_24_Template, 2, 2, "option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](25, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](26, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](27, OrderComponent_span_27_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](28, OrderComponent_span_28_Template, 3, 3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](29, "select", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("change", function OrderComponent_Template_select_change_29_listener() {
return ctx.onChangepreviousUrl();
})("ngModelChange", function OrderComponent_Template_select_ngModelChange_29_listener($event) {
return ctx.model.LookupCode = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](30, OrderComponent_option_30_Template, 3, 3, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](31, OrderComponent_option_31_Template, 3, 3, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](32, OrderComponent_option_32_Template, 2, 2, "option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](33, OrderComponent_div_33_Template, 6, 7, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](34, OrderComponent_div_34_Template, 9, 8, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](35, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](36, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](37);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](38, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](39, "input", 18, 19);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_Template_input_ngModelChange_39_listener($event) {
return ctx.model.FromDate = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](41, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](42, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("click", function OrderComponent_Template_i_click_42_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r558);
var _r432 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](40);
return _r432.toggle();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](43, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](44, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](45);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](46, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](47, "input", 18, 21);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_Template_input_ngModelChange_47_listener($event) {
return ctx.model.ToDate = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](49, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](50, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("click", function OrderComponent_Template_i_click_50_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵrestoreView */
"Mc"](_r558);
var _r433 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](48);
return _r433.toggle();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](51, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](52, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](53, OrderComponent_div_53_Template, 9, 8, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](54, OrderComponent_div_54_Template, 21, 4, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](55, OrderComponent_div_55_Template, 9, 4, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](56, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](57, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](58, "\xA0");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](59, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("click", function OrderComponent_Template_button_click_59_listener() {
ctx.indexModel.Page = 1;
return ctx.saveFilterAndGet();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](60, "i", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](61);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](62, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](63, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](64, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](65, "\xA0");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](66, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("click", function OrderComponent_Template_button_click_66_listener() {
return ctx.reset();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](67, "i", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtext */
"Vc"](68);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](69, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](70, "section", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](71, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](72, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](73, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](74, OrderComponent_h1_74_Template, 7, 8, "h1", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](75, OrderComponent_h1_75_Template, 5, 6, "h1", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](76, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](77, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](78, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("ngModelChange", function OrderComponent_Template_input_ngModelChange_78_listener($event) {
return ctx.model.Search = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipe */
"nc"](79, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](80, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementStart */
"ac"](81, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵlistener */
"ic"]("click", function OrderComponent_Template_button_click_81_listener() {
ctx.indexModel.Page = 1;
return ctx.saveFilterAndGet();
});
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelement */
"Wb"](82, "i", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](83, OrderComponent_div_83_Template, 6, 4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](84, OrderComponent_ng_container_84_Template, 38, 25, "ng-container", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](85, OrderComponent_app_mini_loader_85_Template, 1, 0, "app-mini-loader", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtemplate */
"Tc"](86, OrderComponent_app_no_records_86_Template, 1, 1, "app-no-records", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var _r432 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](40);
var _r433 = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵreference */
"Kc"](48);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx.commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](5, 48, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.commonService.IsDistrict() && !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.orderTypeCode == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.SubTypeCode);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.ddlOrderSubType);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.LookupCode);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.lookupList);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](38, 50, "FromDate_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](41, 52, "FromDate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.FromDate)("bsConfig", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpureFunction1 */
"Ec"](64, _c0, ctx.DatePickerFormat))("minDate", ctx.minimumDate);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵattribute */
"Ib"]("aria-expanded", _r432.isOpen);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](46, 54, "ToDate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](49, 56, "ToDate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.ToDate)("bsConfig", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpureFunction1 */
"Ec"](66, _c0, ctx.DatePickerFormat))("minDate", ctx.model.FromDate ? ctx.model.FromDate : ctx.minimumDate);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵattribute */
"Ib"]("aria-expanded", _r433.isOpen);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.isOptimized);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](62, 58, "Search_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](69, 60, "Reset_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵpipeBind1 */
"oc"](79, 62, "Search_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.Search);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.previousUrl && ctx.previousUrl.PreviousUrl && ctx.previousUrl.UrlSourceCode == ctx.lookupEnum.OrderPreviousUrlSource_ExternalWebsite);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx.orderPublicPortal == null ? null : ctx.orderPublicPortal.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.orderPublicPortal);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.orderPublicPortal && ctx.orderPublicPortal.length == 0);
}
},
directives: [_angular_router__WEBPACK_IMPORTED_MODULE_7__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_13__[
/* NgIf */
"n"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__[
/* SelectControlValueAccessor */
"u"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__[
/* NgControlStatus */
"m"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__[
/* NgModel */
"p"], _angular_common__WEBPACK_IMPORTED_MODULE_13__[
/* NgForOf */
"m"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_15__[
/* BsDatepickerInputDirective */
"b"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__[
/* DefaultValueAccessor */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_15__[
/* BsDatepickerDirective */
"a"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__[
/* NgSelectOption */
"q"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__[
/* ɵangular_packages_forms_forms_x */
"w"], ngx_pagination__WEBPACK_IMPORTED_MODULE_16__[
/* PaginationControlsComponent */
"c"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_17__[
/* MiniLoaderComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_18__[
/* NoRecordsComponent */
"a"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__[
/* TranslatePipe */
"c"], ngx_pagination__WEBPACK_IMPORTED_MODULE_16__[
/* PaginatePipe */
"b"], _angular_common__WEBPACK_IMPORTED_MODULE_13__[
/* DatePipe */
"e"]],
styles: ["section.order-list[_ngcontent-%COMP%]{padding:20px 0}.table_order_list[_ngcontent-%COMP%]{font-size:14px}.table_order_list[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background:#404040;color:#fff}ul.image-list[_ngcontent-%COMP%]{margin:0;padding:0}ul.image-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}ul.image-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:2px 8px;font-size:14px;margin-bottom:8px}.table_order_list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{cursor:pointer}.badge-info[_ngcontent-%COMP%]{color:#fff;background-color:#ff9800}.text-orange[_ngcontent-%COMP%]{color:#4e4e4e!important;background:#fff;padding:2px 5px;border-radius:3px}@media (min-width:1200px){.orders_filter[_ngcontent-%COMP%] .col-xl-2[_ngcontent-%COMP%]{max-width:25%;width:25%;flex:25%}.filter-btn[_ngcontent-%COMP%]{width:100%;min-height:43px}}.table_order_list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{vertical-align:top}.table_order_list[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.table_order_list[_ngcontent-%COMP%] td[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{width:-moz-max-content;width:max-content}.table_order_list[_ngcontent-%COMP%] td[_ngcontent-%COMP%] br[_ngcontent-%COMP%]{display:none}"]
});
return OrderComponent;
}();
/***/
},
/***/
"Dz+M":
/***/
function DzM(module, exports, __webpack_require__) {
"use strict";
var __extends = this && this.__extends ||
/*@__PURE__*/
function () {
var _extendStatics3 = function extendStatics(d, b) {
_extendStatics3 = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function (d, b) {
d.__proto__ = b;
} || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
};
return _extendStatics3(d, b);
};
return function (d, b) {
_extendStatics3(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var Subscription_1 =
/*@__PURE__*/
__webpack_require__("zB/H");
var Action =
/*@__PURE__*/
function (_super) {
__extends(Action, _super);
function Action(scheduler, work) {
return _super.call(this) || this;
}
Action.prototype.schedule = function (state, delay) {
if (delay === void 0) {
delay = 0;
}
return this;
};
return Action;
}(Subscription_1.Subscription);
exports.Action = Action;
/***/
},
/***/
"EY2u":
/***/
function EY2u(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return EMPTY;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return empty;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HDdC");
var EMPTY =
/*@__PURE__*/
new _Observable__WEBPACK_IMPORTED_MODULE_0__[
/* Observable */
"a"](function (subscriber) {
return subscriber.complete();
});
function empty(scheduler) {
return scheduler ? emptyScheduled(scheduler) : EMPTY;
}
function emptyScheduled(scheduler) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__[
/* Observable */
"a"](function (subscriber) {
return scheduler.schedule(function () {
return subscriber.complete();
});
});
} //# sourceMappingURL=empty.js.map
/***/
},
/***/
"FWf1":
/***/
function FWf1(module, exports, __webpack_require__) {
"use strict";
var __extends = this && this.__extends ||
/*@__PURE__*/
function () {
var _extendStatics4 = function extendStatics(d, b) {
_extendStatics4 = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function (d, b) {
d.__proto__ = b;
} || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
};
return _extendStatics4(d, b);
};
return function (d, b) {
_extendStatics4(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var isFunction_1 =
/*@__PURE__*/
__webpack_require__("pshJ");
var Observer_1 =
/*@__PURE__*/
__webpack_require__("GiSu");
var Subscription_1 =
/*@__PURE__*/
__webpack_require__("zB/H");
var rxSubscriber_1 =
/*@__PURE__*/
__webpack_require__("p//D");
var config_1 =
/*@__PURE__*/
__webpack_require__("n3uD");
var hostReportError_1 =
/*@__PURE__*/
__webpack_require__("MkmW");
var Subscriber =
/*@__PURE__*/
function (_super) {
__extends(Subscriber, _super);
function Subscriber(destinationOrNext, error, complete) {
var _this = _super.call(this) || this;
_this.syncErrorValue = null;
_this.syncErrorThrown = false;
_this.syncErrorThrowable = false;
_this.isStopped = false;
switch (arguments.length) {
case 0:
_this.destination = Observer_1.empty;
break;
case 1:
if (!destinationOrNext) {
_this.destination = Observer_1.empty;
break;
}
if (typeof destinationOrNext === 'object') {
if (destinationOrNext instanceof Subscriber) {
_this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
_this.destination = destinationOrNext;
destinationOrNext.add(_this);
} else {
_this.syncErrorThrowable = true;
_this.destination = new SafeSubscriber(_this, destinationOrNext);
}
break;
}
default:
_this.syncErrorThrowable = true;
_this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete);
break;
}
return _this;
}
Subscriber.prototype[rxSubscriber_1.rxSubscriber] = function () {
return this;
};
Subscriber.create = function (next, error, complete) {
var subscriber = new Subscriber(next, error, complete);
subscriber.syncErrorThrowable = false;
return subscriber;
};
Subscriber.prototype.next = function (value) {
if (!this.isStopped) {
this._next(value);
}
};
Subscriber.prototype.error = function (err) {
if (!this.isStopped) {
this.isStopped = true;
this._error(err);
}
};
Subscriber.prototype.complete = function () {
if (!this.isStopped) {
this.isStopped = true;
this._complete();
}
};
Subscriber.prototype.unsubscribe = function () {
if (this.closed) {
return;
}
this.isStopped = true;
_super.prototype.unsubscribe.call(this);
};
Subscriber.prototype._next = function (value) {
this.destination.next(value);
};
Subscriber.prototype._error = function (err) {
this.destination.error(err);
this.unsubscribe();
};
Subscriber.prototype._complete = function () {
this.destination.complete();
this.unsubscribe();
};
Subscriber.prototype._unsubscribeAndRecycle = function () {
var _parentOrParents = this._parentOrParents;
this._parentOrParents = null;
this.unsubscribe();
this.closed = false;
this.isStopped = false;
this._parentOrParents = _parentOrParents;
return this;
};
return Subscriber;
}(Subscription_1.Subscription);
exports.Subscriber = Subscriber;
var SafeSubscriber =
/*@__PURE__*/
function (_super) {
__extends(SafeSubscriber, _super);
function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {
var _this = _super.call(this) || this;
_this._parentSubscriber = _parentSubscriber;
var next;
var context = _this;
if (isFunction_1.isFunction(observerOrNext)) {
next = observerOrNext;
} else if (observerOrNext) {
next = observerOrNext.next;
error = observerOrNext.error;
complete = observerOrNext.complete;
if (observerOrNext !== Observer_1.empty) {
context = Object.create(observerOrNext);
if (isFunction_1.isFunction(context.unsubscribe)) {
_this.add(context.unsubscribe.bind(context));
}
context.unsubscribe = _this.unsubscribe.bind(_this);
}
}
_this._context = context;
_this._next = next;
_this._error = error;
_this._complete = complete;
return _this;
}
SafeSubscriber.prototype.next = function (value) {
if (!this.isStopped && this._next) {
var _parentSubscriber = this._parentSubscriber;
if (!config_1.config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._next, value);
} else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
this.unsubscribe();
}
}
};
SafeSubscriber.prototype.error = function (err) {
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
var useDeprecatedSynchronousErrorHandling = config_1.config.useDeprecatedSynchronousErrorHandling;
if (this._error) {
if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._error, err);
this.unsubscribe();
} else {
this.__tryOrSetError(_parentSubscriber, this._error, err);
this.unsubscribe();
}
} else if (!_parentSubscriber.syncErrorThrowable) {
this.unsubscribe();
if (useDeprecatedSynchronousErrorHandling) {
throw err;
}
hostReportError_1.hostReportError(err);
} else {
if (useDeprecatedSynchronousErrorHandling) {
_parentSubscriber.syncErrorValue = err;
_parentSubscriber.syncErrorThrown = true;
} else {
hostReportError_1.hostReportError(err);
}
this.unsubscribe();
}
}
};
SafeSubscriber.prototype.complete = function () {
var _this = this;
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
if (this._complete) {
var wrappedComplete = function wrappedComplete() {
return _this._complete.call(_this._context);
};
if (!config_1.config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(wrappedComplete);
this.unsubscribe();
} else {
this.__tryOrSetError(_parentSubscriber, wrappedComplete);
this.unsubscribe();
}
} else {
this.unsubscribe();
}
}
};
SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {
try {
fn.call(this._context, value);
} catch (err) {
this.unsubscribe();
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
throw err;
} else {
hostReportError_1.hostReportError(err);
}
}
};
SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {
if (!config_1.config.useDeprecatedSynchronousErrorHandling) {
throw new Error('bad call');
}
try {
fn.call(this._context, value);
} catch (err) {
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
parent.syncErrorValue = err;
parent.syncErrorThrown = true;
return true;
} else {
hostReportError_1.hostReportError(err);
return true;
}
}
return false;
};
SafeSubscriber.prototype._unsubscribe = function () {
var _parentSubscriber = this._parentSubscriber;
this._context = null;
this._parentSubscriber = null;
_parentSubscriber.unsubscribe();
};
return SafeSubscriber;
}(Subscriber);
exports.SafeSubscriber = SafeSubscriber;
/***/
},
/***/
"GAWG":
/***/
function GAWG(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AppSetting;
});
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("AytR");
var AppSetting =
/*@__PURE__*/
function () {
var AppSetting =
/*#__PURE__*/
_createClass2(function AppSetting() {
_classCallCheck(this, AppSetting);
}); //#region
AppSetting.GetDDlUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/AllDropDown?keys=';
AppSetting.GetFilterdDDlUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/AllDropDown'; //static GetSchemeByDepartmentUrl = environment.ApiBaseUrl + 'api/CommonDropDown/GetSchemeByDepartment?Code=';
//#endregion
//#region DDL
AppSetting.DDLKey_OfficeCategory = 'ddlOfficeCategory'; //#endregion
//#region
AppSetting.BannerListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetBannerImageList';
AppSetting.GetAwardListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAwardList';
AppSetting.DDLKeyForAwardList = 'ddlAdminDepartmentAward,ddlDepartmentAward';
AppSetting.GetAchievementListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAchievementList';
AppSetting.GetAnnualProgramListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAnnualProgressReportList';
AppSetting.GetUpcomingEventListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetUpcomingEventList';
AppSetting.GetPublicationsListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetPublicationsList';
AppSetting.GetAchievementDetailurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetById';
AppSetting.GetAchievementListGroupBySubCategoryurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAchievementListGroupBySubCategory';
AppSetting.DDLKeyForAchievementList = 'ddlAdminDepartment,ddlDepartmentAchievement';
AppSetting.DDLFilterLKeyForAchievementList = 'ddlAchievementSubCategory';
AppSetting.GetOrderSubTypesByFilter = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/GetOrderSubTypesByFilter'; //static GetOrderSubTypeByTypeUrl = environment.ApiBaseUrl + "api/CommonDropDown/GetOrderSubTypeByType?typeCode=";
AppSetting.GetNewsTickerListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetNewsTickerList';
AppSetting.GetAchievementListGroupByCategoryUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAchievementListGroupByCategory';
AppSetting.GetExternalLinkList = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetExternalLinkList';
AppSetting.GetAdvertisementListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAdvertisementList';
AppSetting.GetAudioListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAudioList';
AppSetting.GetPostersListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetPostersList';
AppSetting.GetAchievementImportantDecisionListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetImportantDecisionList';
AppSetting.GetVideoListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetVideoList';
AppSetting.GetAchievementListGroupByDepartmenturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAchievementListGroupByDepartment';
AppSetting.GetImportantDecisionListGroupByDepartmenturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetImportantDecisionListGroupByDepartment';
AppSetting.DDLKeyForImportantDecision = 'ddlAdminDepartment,ddlDepartmentImportantDecision';
AppSetting.GetCategoryWiseListDataURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAchievementDynamicListByCategory?AchievementCategoryCode=';
AppSetting.GetDDLForAchievementActiveDepartmentByCatId = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/GetAchievementDepartmentByCatCode';
AppSetting.GetDDLForAchievementActiveAdminDepartmentByCatId = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/GetAchievementAdminDepartmentByCatCode';
AppSetting.GetAchievementByCatId = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/JankalyanHome/GetAchievementListByCategory?id=";
AppSetting.DDLKeyForAchvDepartmentService = 'ddlAdminDepartmentServicesOfferedbyDepartment,ddlDepartmentServicesOfferedbyDepartment,ddlSubCategoryServicesOfferedbyDepartment';
AppSetting.DDLKeyForAchvWebsite = 'ddlAdminDepartmentWebsite,ddlDepartmentWebsite';
AppSetting.DDLKeyForAchvMobileApplcation = 'ddlAdminDepartmentMobileApplication,ddlDepartmentMobileApplication,ddlSubCategoryMobileApplication';
AppSetting.DDLKeyForAchvLetterstoCentralGovt = 'ddlAdminDepartmentLetterstoCentralGovt,ddlDepartmentLetterstoCentralGovt';
AppSetting.DDLKeyForAchvCMspeech = 'ddlAdminDepartmentCMSpeech,ddlDepartmentCMSpeech';
AppSetting.DDLKeyForProgramVideo = 'ddlAdminDepartmentProgramVideo,ddlDepartmentProgramVideo';
AppSetting.GetAchievementListBySearchFilter = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/JankalyanHome/GetAchievementListBySearchFilter";
AppSetting.GetIndiaPortalDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/IndiaPortal/GetIndiaPortalDetail";
AppSetting.GetPubicUtilityCountUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/IndiaPortal/GetPubicUtilityCount";
AppSetting.GetCategoryWisePubicUtilityUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/IndiaPortal/GetCategoryWisePubicUtility";
AppSetting.GetDepartmentWiseListDataURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetDepartmentGroupAchievementListByCategory?AchievementCategoryCode=';
AppSetting.AchievementAttachmentsByDepartmentCodeURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAchievementAttachmentsByDepartmentCode?dptCode=';
AppSetting.DDLKeyForAchvDepartmentalPhotoGallery = 'ddlAdminDepartmentDepartmentalPhotoGallery,ddlDepartmentDepartmentalPhotoGallery';
AppSetting.GetAchievementCatDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/AchievementCategoryMaster/Get";
AppSetting.GetAchievementSubCatDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/AchievementSubCategoryMaster/Get"; //#endregion
//#region
AppSetting.GetImportantDecisionListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/ImportantDecisionPortal/GetImportantDecisionList';
AppSetting.GetImportantDecisionDetailurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/ImportantDecisionPortal/GetImportantDecisionDetail/';
AppSetting.GetImportantDecisionListGroupBySubCategoryurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetImportantDecisionListGroupBySubCategory';
AppSetting.DDLKeyForImportantDecisionList = 'ddlDepartment';
AppSetting.GetImpDecisionsubcategoryList = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/GetImpdecSubcategorybydeptandcat?';
AppSetting.DDLFilterLKeyForImportantDecisionList = 'ddlAdminDepartment,ddlDepartment,ddlSector,ddlImpCategory,ddlImportantDecisionSubCategory'; //#endregion
//#region
AppSetting.GetSchemeListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/SchemePortal/Get';
AppSetting.GetFilterSchemeListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/SchemePortal/GetAllSchemeByFilter';
AppSetting.DDLKeyForScheme = 'ddlSchemeMaster,ddlSchemePageType,ddlDistrict,ddlDepartmentScheme,RadioPaymentDisbursementFrequency,RadioMadeOfApplingOnlineAndBoth,RadioListOfRequiredDoc,RadioSchemeOwnedBy,RadioServiceFee,RadioSchemeModeofApplying,RadioSchemeExpriedOn,RadioApplyForScheme,RadioRGDPSAct,RadioSchemeOwnedBy,ddlSchemeNameOfDocument,ddlSchemeModeOfDisbursement,ddlSchemeListOfOtherDoc,ddlSchemePaymentDisbursementFrequency,ddlSchemeModeOfDelivery,ddlSchemeEligibility,ddlSchemePayFees,ddlSchemeListOfRequiredDoc,ddlSchemeServiceProgramArea,ddlSchemeServiceType,ddlDesignation,ddlCommonMaster,ddlAdminDepartmentScheme,ddlBeneficiaryCategory,ddlCategory,ddlSchemeType,ddlSchemeOutput,ddlModeofPayment,ddlModeOfDelivery,ddlSchemeArea,ddlSchemeServiceProgramArea,RadioSchemeType';
AppSetting.SchemeGetUrlById = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/SchemePortal/GetById';
AppSetting.GetSchemeFaqUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/SchemePortal/GetSchemeFaq';
AppSetting.GetSchemeGallaryListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/gallery/GetAllDetails';
AppSetting.GetSchemeGallaryPhotosListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/gallery/GetAllPhotosDetails';
AppSetting.GetSchemeGallaryVideoListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/gallery/GetAllVideoDetails';
AppSetting.GetSchemeGallaryYoutubeListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/gallery/GetAllYoutubeDetails';
AppSetting.GetSchemeGallaryVideoYoutubeListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/gallery/GetAllVideoandYoutubeDetails';
AppSetting.GetTopSchemeByDepartmentListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/SchemePortal/GetTopSchemeByDepartment';
AppSetting.GetSchemeStatusListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/SchemePortal/GetSchemeImplementationStatusList';
AppSetting.GetGalleryDataUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/gallery/GetAllDetails'; //#endregion
//#region Department View
AppSetting.DDLKeyForDepartmentView = 'ddlDepartment';
AppSetting.DDLKeyForDepartmentCategoryView = 'ddlAdminDepartment,ddlDepartmentListByCategory'; //#endregion
//#region
AppSetting.GetGroupTypeOrderListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/OrderPortal/GetGroupTypeOrderList';
AppSetting.OrderListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/OrderPortal/GetList';
AppSetting.DDLKeyForOrderEntry = 'ddlDistrict,ddlDptContactDesignation,ddlUserDistrict,ddlBeneficiaryCategory,ddlOrderSector,ddlOrderType,ddlOrderIssueBy,ddlOrderModuleName,ddlDepartmentSection,ddlOfficeCategory';
AppSetting.DDLFilterKeyForOrderEntry = 'ddlOrderSubType';
AppSetting.OrderDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/OrderPortal/GetById';
AppSetting.OrderChildListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/OrderPortal/GetOrderChildRecordById'; // static OrderParentListUrl = environment.ApiBaseUrl + 'api/OrderPortal/GetOrderParentRecordById';
AppSetting.OrderTypeListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/OrderPortal/GetAllOrderType';
AppSetting.OrderTypeDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'PublicPortal/OrderPortal/GetOrderTypeDetail';
AppSetting.OrderSubTypeDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/OrderSubTypeMaster/Get';
AppSetting.GetLookupTypeListByOrderDocumentSubTypeId = 'https://jankalyanfrontwebapi.rajasthan.gov.in/' + "ComparetiveModule/OrderSubTypeMaster/GetLookupTypeListByOrderDocumentSubTypeId";
AppSetting.DDLKeyForAdmLatestOrderList = 'ddlBeneficiaryCategory,ddlDepartmentOrder,ddlOrderType';
AppSetting.GetAdminLatestOrderListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/OrderPortal/GetAdmDeptLatestOrders';
AppSetting.GetOfficeCategoryOrderCountsUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetOfficeCategoryOrderCounts";
AppSetting.GetOfficeOrderCountsUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetOfficeOrderCounts";
AppSetting.GetOrderTypeWithOrderCountUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetOrderTypeWithOrderCount";
AppSetting.GetOfficeDetailsUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/JankalyanHome/GetOfficeDetail";
AppSetting.GetPreviousUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "CMDashboard/OrderPortal/GetPreviousUrlList";
AppSetting.GetSectionWiseOrderCountUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetSectionWiseOrderCounts";
AppSetting.GetDptSectionBydptCode = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetSectionByDepartmentCode";
AppSetting.GetLookupTypeListForOrderDocument = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "ComparetiveModule/OrderSubTypeMaster/GetLookupTypeListForOrderDocument"; //#endregion
//#region Weekly report
AppSetting.WeeklyReportUrl = 'https://foxfms.com/api/FeederData/GetWeeklyReport/2024-07-01/2024-07-07'; //#endregion
//#region
AppSetting.HereMapLayerUrl = 'https://cle.api.here.com/2/search/all.json?app_id=05UjfGhidSoDnGkZ3v1u&app_code=OsXpO2uP8im1Pw2uuwsUUg&proximity=26.9124,75.7873,5000&layer_id='; //#endregion
//#region HOME
AppSetting.AdvertisementPopUpServiceUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/WebServices/AdvertisementService/GetAllAdvertisementAndGovAchievment'; //#endregion
//#region Department
AppSetting.GetDepartmentProfileListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetDepartmentProfileList';
AppSetting.GetOtherLinkListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAndSetVisitorCount?CatCode=';
AppSetting.GetDepartmentContactListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetDepartmentContactList';
AppSetting.GetAllUserDetailListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAllUserDetailList';
AppSetting.GetAndSetVisitorCount = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "/PublicPortal/DepartmentWebsite/GetAndSetVisitorCount?DepartmentCode=";
AppSetting.GetAllTendorData = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/PublicPortal/DepartmentWebsite/GetAllTendorData";
AppSetting.GetOfficeWiseTenderCounts = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/CommonDropDown/GetOfficeWiseTenderCounts";
AppSetting.DDLKeyForTender = 'ddlTenderCategory';
AppSetting.GetPrabhariMantriDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetPrabhariMantriDetail?deptCode='; //#endregion
//#region CMIS
AppSetting.GetAllCMISModuleDataListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CMISModulePortal/GetAllCMISModuleData';
AppSetting.DDLKeyForCMISModule = 'ddlCMISModule';
AppSetting.GetAllCMISModuleMasterListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CMISModulePortal/GetAllCMISModuleMasterData';
AppSetting.GetAllCMISModuleSearchDataListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CMISModulePortal/GetAllCMISModuleSearchData';
AppSetting.GetCMISAdminDepartmentByModuleCode = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CommonDropDown//GetCMISAdminDepartmentByModuleCode';
AppSetting.GetCMISDepartmentByModuleCode = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CommonDropDown//GetCMISDepartmentByModuleCode';
AppSetting.GetCMISFinancialYearByModuleCode = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CommonDropDown//GetCMISFinancialYearByModuleCode?code=';
AppSetting.JankalyanEntryGetByIdUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/JankalyanEntryTypeMaster/Get/"; // static JankalyanLookupTypeUrl = environment.ApiBaseUrl + "Admin/LookUp/Get/";
AppSetting.JankalyanLookupTypeUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "PublicPortal/DepartmentWebsite/GetDepartmentContactCategoryDetail/";
AppSetting.GetAllCMISModuleDataGroupByDepartmenturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CMISModulePortal/GetAllCMISModuleDataGroupByDepartment';
AppSetting.GetAllCMISAchievementDataListurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CMISModulePortal/GetAllCMISAchievement';
AppSetting.GetAllCMISAchievementGroupByDepartmenturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/CMISModulePortal/GetAllCMISAchievementGroupByDepartment';
AppSetting.DDLKeyForCMISAchievement = "ddlCMISAchievementAdmDepartment,ddlCMISAchievementDepartment";
AppSetting.JankalyanCategoryDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/JANCategoryMaster/Get/";
AppSetting.JankalyanEntryTypeListByCategoryUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/JankalyanEntryTypeMaster/GetEntryTypeByCategory/";
AppSetting.GetDeptProfileSubCategoriesUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetDeptProfileSubCategories";
AppSetting.GetOfficeWiseDeptProfileRecordCountUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetOfficeWiseDeptProfileRecordCount"; //#endregion
//#region CM Profile
AppSetting.GetCMProfileDetailurl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetCMProfile'; //#endregion
//#region
AppSetting.GetProjectMasterListBySearchFilter = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/ProjectMasterPortal/GetListBySearchFilter";
AppSetting.DDLKeyForProjectMaster = 'ddlExistingProjectAdmDepartment,ddlExistingProjectDepartment,ddlExistingProjectMLADistrict,ddlExistingProjectStatus,ddlExistingProjectSector,ddlExistingProjectCategory,ddlExistingProjectStartYear,ddlExistingProjectMLAConstituency';
AppSetting.getProjectMaterDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/ProjectMasterPortal/GetById"; //#endregion
//#region
AppSetting.GetNewsProgressListBySearchFilterUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/NewsPaperPortal/GetListBySearchFilter";
AppSetting.DDLKeyForNewsProgress = 'ddlExistingNewsAdmDepartment,ddlExistingNewsDepartment,ddlExistingNewsPaper,ddlExistingNewsPublicationType,ddlExistingNewsCoverageType'; //ddlExistingNewsSubject
//static getNewsDetailUrl = environment.ApiBaseUrl + "/api/NewsPaperPortal/GetById"
//#endregion
//#region Public-document
AppSetting.GetHelpDocUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/Common/GetHelpDocument?module="; //#endregion
//#region
AppSetting.EbookletCategoryUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/PublicPortal/EBookletPortal/GeEbookletCategory";
AppSetting.EBookletandCategoryDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/PublicPortal/EBookletPortal/GetEBookletandCategoryDetail"; //#endregion
//#region
AppSetting.AllLatestUpdateUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/JankalyanHome/GetAllLatestUpdate'; //#endregion
//#region
AppSetting.DipartmentDistrictUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/JankalyanDepartmentDistrictWebsite/GetDipartmentDistrict';
AppSetting.OrderPressReleaseTenderDataUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetOrderPressReleaseTenderData?dptCode=';
AppSetting.PressReleaseURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetPressReleaseData?dptCode=';
AppSetting.TenderUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetTenderData?dptCode=';
AppSetting.OrderUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetOrderData?dptCode=';
AppSetting.GeneralEntryUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetGeneralEntryData?dptCode=';
AppSetting.OthetDepartmentLatestUpdatesUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetOthetDepartmentLatestUpdatesData?dptCode=';
AppSetting.MLAConstituencyUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetMLAConstituency';
AppSetting.DepartemntWebsiteQuickLinkUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDepartemntWebsiteQuickLink?dptCode=';
AppSetting.DepartmentDetailByDptCodeUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDepartmentDetailByDptCode';
AppSetting.GetGeneralSubCategory = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetGeneralSubCategory?CategoryCode=";
AppSetting.DptWebsiteOtherGeneralLinkUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDptWebsiteOtherGeneralLink';
AppSetting.DptWebsiteOtherTransactionLinkUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDptWebsiteOtherTransactionLink';
AppSetting.DptInAugrationLinkUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetPressReleaseByFilter';
AppSetting.WebsiteHomePageSectionUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetWebsiteHomePageSection?dptCode=';
AppSetting.MenuListForDepartmentUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetMenuListForDepartment';
AppSetting.DptWebsiteGetSubMenuUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDptWebsiteSubMenus';
AppSetting.ChildDepartmentMenuListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetChildDeptMenuList';
AppSetting.DptDepartmentContactUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDepartmentContactDetail';
AppSetting.DptContactCategoryDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDepartmentContactCategoryDetail/';
AppSetting.GetAllDepartmentontactDetailToExcelUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetAllDepartmentontactDetailToExcel';
AppSetting.PressReleaseDDLKey = "ddlModifiedBypressRelease,ddlPressReleaseLookupCategory,ddlPressReleaseDepartment,RadioStateDistrict,ddlVCParticipantCategory,ddlDepartmentForDistrictKPIList,ddlDesignationForPressRelease,ddlPressReleaseCategory,ddlDepartment,ddlDistrict";
AppSetting.GetJankalyanEntryTypebyDepartmentCode = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetJankalyanEntryTypebyDepartmentCode?departmentCode=";
AppSetting.GetVIPPersonListOfPressRelease = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetVIPPersonListOfPressRelease?Code=";
AppSetting.DptAchievementCategoryDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/Common/GetAchievementCategoryByCode/';
AppSetting.WebsiteSearchResultUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '//PublicPortal/DepartmentWebsite/GetWebsiteSearchResult';
AppSetting.ddlDownloadDocumentType = 'ddlDownloadDocumentType';
AppSetting.ddlKey_ddlDesignation = 'ddlDesignation';
AppSetting.GetDeptAssetsIconAndListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DocumentMaster/GetDeptAssetsIconAndList?DeptCode=';
AppSetting.DepartmentReportFilterWiseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/DepartmentReportFilterWise';
AppSetting.GetDepartmentPageDetailUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentPages/GetDepartmentPageDetail';
AppSetting.GetIsAuthenticationRequiredUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentPages/GetIsAuthenticationRequired';
AppSetting.DeptWebsiteLinksUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/PublicPortal/DepartmentWebsite/GetDeptWebsiteLinks?deptCode=';
AppSetting.GetPressReleaseSubCategories = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/GetPressReleaseSubCategories';
AppSetting.GetWebDirectory = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/GetWebDirectory';
AppSetting.GetSubmenuDetailUrl = 'https://jankalyanfrontwebapi.rajasthan.gov.in/' + '/PublicPortal/DepartmentWebsite/GetSubmenuDetail';
AppSetting.GetDepartmentByAdminDepartmentCodesUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/CommonDropDown/GetDepartmentByAdminDepartmentCodes?codes=';
AppSetting.GetUploaderDataForFront = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/PublicPortal/DepartmentWebsite/GetUploaderDataForFront"; //#endregion
//#region
AppSetting.AdvertisementGetData = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'WebServices/AdvertisementService/ServiceForGetAllAdvertisement';
AppSetting.GovermentAchivementData = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'WebServices/AdvertisementService/GetAllGovermentAchivement';
AppSetting.GetAllJankalyanAdvertisement = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "CMDashboard/JankalyanAdvertisement/GetAllJankalyanAdvertisement/"; //#endregion
//#region
AppSetting.AchievementDepartmentCoutListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/JankalyanApp/GetDepartmentAchivement_DeptCatWiseCount/';
AppSetting.AchievementDepartmentCoutWiseListUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + 'api/JankalyanApp/GetDepartmentAchivement_DeptCatWiseList'; //#endregion
AppSetting.ComplianceNoOfEntryInJankalyanReportDataURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "Admin/JankalyanReport/GetComplianceNoOfEntryInJankalyanReportData";
AppSetting.GetDistrictComplianceFrontReportDataURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "Admin/JankalyanReport/GetDistrictComplianceFrontReportData";
AppSetting.GetModuleById = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "PublicPortal/CMISModulePortal/GetModuleById"; // web services
AppSetting.GetWebServicesById = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/ExternalWebAPI/GetWebServiceResponseById/';
AppSetting.GetAllWebServiceUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + '/api/ExternalWebAPI/GetAllWebService/';
AppSetting.GetOfficesByDepartmentAndDistrictUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/CommonDropDown/GetOffice"; //Sveep Participant
AppSetting.RegisterSveepParticipantUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "PublicPortal/SveepParticipant/AddSveepParticipant";
AppSetting.ResentOTPUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "PublicPortal/SveepParticipant/Resend";
AppSetting.VerifyOtpUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "PublicPortal/SveepParticipant/Verify";
AppSetting.GetContactDetail = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "PublicPortal/DepartmentWebsite/GetDepartmentContactBasicDetail"; //#region
AppSetting.RegisterUserUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "PublicPortal/AppUser/RegisterAppUser";
AppSetting.RegisterUserV1Url = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "PublicPortal/AppUser/RegisterAppUserV1";
AppSetting.VerifyUserOtpUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "PublicPortal/AppUser/VerifyOtp";
AppSetting.ResentUserOTPUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "PublicPortal/AppUser/ResentOTP"; //#endregion
AppSetting.addDepartmentFeedback = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + '/api/DepartmentWebsite/AddPortalUserFeedback';
AppSetting.API_ENDPOINT_Raj_Sampark = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].Raj_Sampark_Url;
AppSetting.API_ValidateLoginWithOTP = '/api/CmoPhotoBooth/ValidateLoginWithOTP'; //#region AdaUserfeedback form
AppSetting.AddFeedbackURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "api/DepartmentWebsite/AddDepartmentUserFeedbackRegisteration";
AppSetting.AddFeedbackURL2 = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "api/DepartmentWebsite/AddDepartmentUserFeedback";
AppSetting.ValidateImageUserFeedbackRegisteration = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "api/DepartmentWebsite/ValidateImageUserFeedbackRegisteration";
AppSetting.GetAdaUserFeedbackListBySearchFilter = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/DepartmentWebsite/GetAllFeedbacks";
AppSetting.VerifyOtp = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/DepartmentWebsite/VerifyDepartmentUserFeedbackRegisteration";
AppSetting.GetAdaServices = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/DepartmentWebsite/GetAllFeedbacksServices/";
AppSetting.AddNewAdaFeedbackService = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "api/DepartmentWebsite/AddFeedbackService"; //#endregion
//#region CentralizedUserfeedback form
AppSetting.AddCentralizedFeedbackURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "api/UserFeedback/AddDepartmentUserFeedbackRegisteration";
AppSetting.AddCentralizedFeedbackURL2 = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "api/UserFeedback/AddDepartmentUserFeedback";
AppSetting.GetCentralizedFeedbackListBySearchFilter = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "/api/UserFeedback/GetAllFeedbacks";
AppSetting.CentralizedUserfeedbackVerifyOtp = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "/api/UserFeedback/VerifyDepartmentUserFeedbackRegisteration";
AppSetting.GetCentralizedUserfeedbackServices = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].ApiBaseUrl + "api/UserFeedback/GetServiceById";
AppSetting.AddNewCentralizedFeedbackService = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__[
/* environment */
"a"].JanRWApiBaseUrl + "api/UserFeedback/Post";
return AppSetting;
}();
/***/
},
/***/
"GMZp":
/***/
function GMZp(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
function isObject(x) {
return x !== null && typeof x === 'object';
}
exports.isObject = isObject;
/***/
},
/***/
"GiSu":
/***/
function GiSu(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var config_1 =
/*@__PURE__*/
__webpack_require__("n3uD");
var hostReportError_1 =
/*@__PURE__*/
__webpack_require__("MkmW");
exports.empty = {
closed: true,
next: function next(value) {},
error: function error(err) {
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
throw err;
} else {
hostReportError_1.hostReportError(err);
}
},
complete: function complete() {}
};
/***/
},
/***/
"GmSP":
/***/
function GmSP(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return MiniLoaderComponent;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fXoL");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ofXK");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("sYmb");
var _c0 = function _c0(a0) {
return {
color: a0
};
};
var MiniLoaderComponent =
/*@__PURE__*/
function () {
var MiniLoaderComponent =
/*#__PURE__*/
function () {
function MiniLoaderComponent() {
_classCallCheck(this, MiniLoaderComponent);
this.color = '#000';
}
return _createClass2(MiniLoaderComponent, [{
key: "ngOnInit",
value: function ngOnInit() {}
}]);
}();
MiniLoaderComponent.ɵfac = function MiniLoaderComponent_Factory(t) {
return new (t || MiniLoaderComponent)();
};
MiniLoaderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineComponent */
"Pb"]({
type: MiniLoaderComponent,
selectors: [["app-mini-loader"]],
inputs: {
color: "color"
},
decls: 5,
vars: 6,
consts: [[1, "mini-loading", "text-center", 3, "ngStyle"], [1, "fas", "fa-spinner", "fa-spin"], [1, "mb-0", "mt-3"]],
template: function MiniLoaderComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementStart */
"ac"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelement */
"Wb"](1, "i", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementStart */
"ac"](2, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵproperty */
"tc"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵpureFunction1 */
"Ec"](4, _c0, ctx.color));
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵpipeBind1 */
"oc"](4, 2, "Loading_txt"));
}
},
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* NgStyle */
"o"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__[
/* TranslatePipe */
"c"]],
styles: [""]
});
return MiniLoaderComponent;
}();
/***/
},
/***/
"GyhO":
/***/
function GyhO(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return concat;
});
/* harmony import */
var _of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("LRne");
/* harmony import */
var _operators_concatAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("0EUg");
function concat() {
return Object(_operators_concatAll__WEBPACK_IMPORTED_MODULE_1__[
/* concatAll */
"a"])()(Object(_of__WEBPACK_IMPORTED_MODULE_0__[
/* of */
"a"]).apply(void 0, arguments));
} //# sourceMappingURL=concat.js.map
/***/
},
/***/
"HDdC":
/***/
function HDdC(module, __webpack_exports__, __webpack_require__) {
"use strict"; // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Subscriber.js
var Subscriber = __webpack_require__("7o/Q"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/canReportError.js
function canReportError(observer) {
while (observer) {
var _observer = observer,
closed = _observer.closed,
destination = _observer.destination,
isStopped = _observer.isStopped;
if (closed || isStopped) {
return false;
} else if (destination && destination instanceof Subscriber["a"
/* Subscriber */
]) {
observer = destination;
} else {
observer = null;
}
}
return true;
} //# sourceMappingURL=canReportError.js.map
// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/symbol/rxSubscriber.js
var rxSubscriber = __webpack_require__("2QA8"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Observer.js
var Observer = __webpack_require__("gRHU"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/toSubscriber.js
function toSubscriber(nextOrObserver, error, complete) {
if (nextOrObserver) {
if (nextOrObserver instanceof Subscriber["a"
/* Subscriber */
]) {
return nextOrObserver;
}
if (nextOrObserver[rxSubscriber["a"
/* rxSubscriber */
]]) {
return nextOrObserver[rxSubscriber["a"
/* rxSubscriber */
]]();
}
}
if (!nextOrObserver && !error && !complete) {
return new Subscriber["a"
/* Subscriber */
](Observer["a"
/* empty */
]);
}
return new Subscriber["a"
/* Subscriber */
](nextOrObserver, error, complete);
} //# sourceMappingURL=toSubscriber.js.map
// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/symbol/observable.js
var observable = __webpack_require__("kJWO"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/pipe.js
var _pipe = __webpack_require__("mCNh"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/config.js
var config = __webpack_require__("2fFW"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/Observable.js
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return Observable_Observable;
});
var Observable_Observable =
/*@__PURE__*/
function () {
var Observable =
/*#__PURE__*/
function (_observable$a) {
function Observable(subscribe) {
_classCallCheck(this, Observable);
this._isScalar = false;
if (subscribe) {
this._subscribe = subscribe;
}
}
return _createClass2(Observable, [{
key: "lift",
value: function lift(operator) {
var observable = new Observable();
observable.source = this;
observable.operator = operator;
return observable;
}
}, {
key: "subscribe",
value: function subscribe(observerOrNext, error, complete) {
var operator = this.operator;
var sink = toSubscriber(observerOrNext, error, complete);
if (operator) {
sink.add(operator.call(sink, this.source));
} else {
sink.add(this.source || config["a"
/* config */
].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable ? this._subscribe(sink) : this._trySubscribe(sink));
}
if (config["a"
/* config */
].useDeprecatedSynchronousErrorHandling) {
if (sink.syncErrorThrowable) {
sink.syncErrorThrowable = false;
if (sink.syncErrorThrown) {
throw sink.syncErrorValue;
}
}
}
return sink;
}
}, {
key: "_trySubscribe",
value: function _trySubscribe(sink) {
try {
return this._subscribe(sink);
} catch (err) {
if (config["a"
/* config */
].useDeprecatedSynchronousErrorHandling) {
sink.syncErrorThrown = true;
sink.syncErrorValue = err;
}
if (canReportError(sink)) {
sink.error(err);
} else {
console.warn(err);
}
}
}
}, {
key: "forEach",
value: function forEach(next, promiseCtor) {
var _this77 = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var subscription;
subscription = _this77.subscribe(function (value) {
try {
next(value);
} catch (err) {
reject(err);
if (subscription) {
subscription.unsubscribe();
}
}
}, reject, resolve);
});
}
}, {
key: "_subscribe",
value: function _subscribe(subscriber) {
var source = this.source;
return source && source.subscribe(subscriber);
}
}, {
key: _observable$a,
value: function value() {
return this;
}
}, {
key: "pipe",
value: function pipe() {
for (var _len = arguments.length, operations = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
operations[_key2] = arguments[_key2];
}
if (operations.length === 0) {
return this;
}
return Object(_pipe["b"
/* pipeFromArray */
])(operations)(this);
}
}, {
key: "toPromise",
value: function toPromise(promiseCtor) {
var _this78 = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var value;
_this78.subscribe(function (x) {
return value = x;
}, function (err) {
return reject(err);
}, function () {
return resolve(value);
});
});
}
}]);
}(observable["a"
/* observable */
]);
Observable.create = function (subscribe) {
return new Observable(subscribe);
};
return Observable;
}();
function getPromiseCtor(promiseCtor) {
if (!promiseCtor) {
promiseCtor = config["a"
/* config */
].Promise || Promise;
}
if (!promiseCtor) {
throw new Error('no Promise impl found');
}
return promiseCtor;
} //# sourceMappingURL=Observable.js.map
/***/
},
/***/
"HHJd":
/***/
function HHJd(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return DepartmentPageDetailComponent;
});
/* harmony import */
var src_app_Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("RVz6");
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("j672");
/* harmony import */
var src_app_Shared_Model_department_view_model_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("MZWM");
/* harmony import */
var src_app_Shared_Model_dpt_district_website_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ylkv");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("AytR");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fXoL");
/* harmony import */
var src_app_Shared_Service_department_profile_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("56/0");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("jhN1");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("LYBR");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("qVlC");
/* harmony import */
var src_app_Shared_Service_department_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("6mOv");
/* harmony import */
var src_app_Shared_Service_app_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("71LL");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("ofXK");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("GmSP");
/* harmony import */
var src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("/9+q");
var _c0 = ["skipperMainContent"];
var _c1 = ["skipperMenuContent"];
var _c2 = ["pageBody"];
var _c3 = ["pdfContent"];
function DepartmentPageDetailComponent_nav_1_span_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4138 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r4138.translate.currentLang != "hi" ? ctx_r4138.pageTitle == null ? null : ctx_r4138.pageTitle.NameEnglish : ctx_r4138.pageTitle == null ? null : ctx_r4138.pageTitle.NameHindi);
}
}
function DepartmentPageDetailComponent_nav_1_span_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function DepartmentPageDetailComponent_nav_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "nav", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "ol", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "li", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "a", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](7, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](8, DepartmentPageDetailComponent_nav_1_span_8_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](9, DepartmentPageDetailComponent_nav_1_span_9_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4132 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx_r4132.commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](6, 4, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4132.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r4132.pageTitle);
}
}
function DepartmentPageDetailComponent_span_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4133 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r4133.translate.currentLang != "hi" ? ctx_r4133.pageTitle == null ? null : ctx_r4133.pageTitle.NameEnglish : ctx_r4133.pageTitle == null ? null : ctx_r4133.pageTitle.NameHindi);
}
}
function DepartmentPageDetailComponent_span_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function DepartmentPageDetailComponent_section_7_div_4_div_2_span_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](0, "span", 27);
}
}
function DepartmentPageDetailComponent_section_7_div_4_div_2_Template(rf, ctx) {
if (rf & 1) {
var _r4145 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function DepartmentPageDetailComponent_section_7_div_4_div_2_Template_button_click_1_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r4145);
var ctx_r4144 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r4144.downloadAsPDF();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](2, DepartmentPageDetailComponent_section_7_div_4_div_2_span_2_Template, 1, 0, "span", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4141 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("disabled", ctx_r4141.isDownloadingPDF);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4141.isDownloadingPDF);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4141.isDownloadingPDF ? "Generating..." : "Download PDF", " ");
}
}
function DepartmentPageDetailComponent_section_7_div_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](2, DepartmentPageDetailComponent_section_7_div_4_div_2_Template, 4, 3, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "div", 21, 22);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](5, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4140 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4140.WebsiteCode != 111);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("innerHTML", ctx_r4140.translate.currentLang == "hi" ? (ctx_r4140.model == null ? null : ctx_r4140.model.DescriptionHindi) ? ctx_r4140.sanitizer.bypassSecurityTrustHtml(ctx_r4140.model == null ? null : ctx_r4140.model.DescriptionHindi) : ctx_r4140.sanitizer.bypassSecurityTrustHtml(ctx_r4140.model == null ? null : ctx_r4140.model.DescriptionEng) : ctx_r4140.sanitizer.bypassSecurityTrustHtml(ctx_r4140.model == null ? null : ctx_r4140.model.DescriptionEng), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeHtml */
"Nc"]);
}
}
function DepartmentPageDetailComponent_section_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "section", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](4, DepartmentPageDetailComponent_section_7_div_4_Template, 6, 2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4135 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4135.model == null ? null : ctx_r4135.model.DescriptionEng);
}
}
function DepartmentPageDetailComponent_app_mini_loader_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function DepartmentPageDetailComponent_app_no_records_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 28);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
var DepartmentPageDetailComponent =
/*@__PURE__*/
function () {
var DepartmentPageDetailComponent =
/*#__PURE__*/
function () {
function DepartmentPageDetailComponent(departmentProfile, translate, sanitizer, _route, _router, commonService, _dptDistrictWebsiteService, _departmentService, router, _commonService, appService, renderer, metaTagService) {
_classCallCheck(this, DepartmentPageDetailComponent);
this.departmentProfile = departmentProfile;
this.translate = translate;
this.sanitizer = sanitizer;
this._route = _route;
this._router = _router;
this.commonService = commonService;
this._dptDistrictWebsiteService = _dptDistrictWebsiteService;
this._departmentService = _departmentService;
this.router = router;
this._commonService = _commonService;
this.appService = appService;
this.renderer = renderer;
this.metaTagService = metaTagService;
this.pageUrlCode = 0;
this.model = new src_app_Shared_Model_department_view_model_model__WEBPACK_IMPORTED_MODULE_2__[
/* Front_DepartmentPageModel */
"e"]();
this.submenuCode = 0;
this.WebsiteCode = 0;
this.IsLoading = true;
this.pageCode = 0;
this.DepartmentCode = 0;
this.LookupCode = 0;
this.isAuthenticationRequired = false;
this.keywords = '';
this.description = '';
this.dptModel = new src_app_Shared_Model_dpt_district_website_model__WEBPACK_IMPORTED_MODULE_3__[
/* DepartmentDetailModel */
"b"]();
this.enumdata = src_app_Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_0__[
/* LookupTypeEnum */
"b"];
this.fontSize = 14;
this.isDownloadingPDF = false;
this.templateClass = '';
}
return _createClass2(DepartmentPageDetailComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this79 = this;
if (localStorage.getItem("websiteCode")) {
this.WebsiteCode = Number(localStorage.getItem("websiteCode"));
}
this._route.paramMap.subscribe(function (params) {
_this79.pageTitle = undefined;
_this79.templateClass = _this79._commonService.GetLocalStorageVal('TemplateClass');
var param_deptCode = params.get("deptCode");
if (param_deptCode) {
_this79.DepartmentCode = Number(param_deptCode || 0);
}
var param_lookupCode = params.get("lookupCode");
if (param_lookupCode) {
_this79.LookupCode = Number(param_lookupCode || 0);
}
var param_PageCode = params.get("pageCode");
if (param_PageCode) {
_this79.pageCode = Number(param_PageCode || 0);
}
var param_submenuCode = params.get("submenuCode");
if (param_submenuCode) {
_this79.submenuCode = Number(param_submenuCode || 0);
}
if (_this79.pageUrlCode) {
_this79.pageCode = _this79.pageUrlCode;
}
debugger;
_this79.getPageHeading();
var isVerified = sessionStorage.getItem("IsVerified") ? JSON.parse(sessionStorage.getItem("IsVerified")) : false;
if (isVerified) {
_this79.GetDepartmentPageDetail(_this79.DepartmentCode ? _this79.DepartmentCode : 0, _this79.LookupCode ? _this79.LookupCode : _this79.LookupCode, _this79.pageCode ? _this79.pageCode : _this79.pageCode);
} else {
_this79.GetIsAuthenticationRequired(_this79.DepartmentCode ? _this79.DepartmentCode : 0, _this79.LookupCode ? _this79.LookupCode : _this79.LookupCode, _this79.pageCode ? _this79.pageCode : _this79.pageCode);
}
});
} // HTML to PDF generation using html2pdf.js
}, {
key: "downloadAsPDF",
value: function downloadAsPDF() {
var _this80 = this;
var _a, _b;
this.isDownloadingPDF = true;
var element = this.pdfContent.nativeElement; // Get filename
var fileName = this.translate.currentLang === 'hi' ? ((_a = this.pageTitle) === null || _a === void 0 ? void 0 : _a.NameHindi) || 'Document' : ((_b = this.pageTitle) === null || _b === void 0 ? void 0 : _b.NameEnglish) || 'Document'; // Check if html2pdf is available
if (typeof html2pdf === 'undefined') {
console.error('html2pdf.js is not loaded. Please install it first: npm install html2pdf.js');
this.loadHtml2PdfScript().then(function () {
_this80.generatePdfWithHtml2Pdf(element, fileName);
})["catch"](function () {
_this80.isDownloadingPDF = false;
alert('html2pdf.js library is not available. Please install it with: npm install html2pdf.js');
});
return;
}
this.generatePdfWithHtml2Pdf(element, fileName);
}
}, {
key: "generatePdfWithHtml2Pdf",
value: function generatePdfWithHtml2Pdf(element, fileName) {
var _this81 = this;
// Configure html2pdf options for high quality
var options = {
margin: 5,
filename: "".concat(fileName, ".pdf"),
image: {
type: 'jpeg',
quality: 1.0
},
html2canvas: {
scale: 2,
useCORS: true,
letterRendering: true,
allowTaint: false,
backgroundColor: '#ffffff'
},
jsPDF: {
unit: 'mm',
format: 'a3',
orientation: 'portrait',
compress: true
},
pagebreak: {
mode: ['avoid-all', 'css', 'legacy']
}
}; // Generate PDF
html2pdf().set(options).from(element).save().then(function () {
_this81.isDownloadingPDF = false;
console.log('PDF generated successfully with html2pdf.js');
})["catch"](function (error) {
console.error('Error generating PDF:', error);
_this81.isDownloadingPDF = false;
alert('Failed to generate PDF. Please try the "Print as PDF" option instead.');
});
}
}, {
key: "loadHtml2PdfScript",
value: function loadHtml2PdfScript() {
return new Promise(function (resolve, reject) {
if (typeof html2pdf !== 'undefined') {
resolve();
return;
}
var script = document.createElement('script');
script.src = './assets/js/html2pdf.bundle.min.js';
script.onload = function () {
return resolve();
};
script.onerror = function () {
return reject();
};
document.head.appendChild(script);
});
}
}, {
key: "getPageHeading",
value: function getPageHeading() {
if (this.submenuCode > 0) {
this.getSubmenuDetail();
}
}
}, {
key: "getSubmenuDetail",
value: function getSubmenuDetail() {
var _this82 = this;
this._dptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(function (res) {
if (res.IsSuccess) {
var submenu = res.Data;
if (submenu) {
_this82.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__[
/* PageTitleModel */
"f"]();
_this82.pageTitle.NameEnglish = submenu.DisplayNameEnglish;
_this82.pageTitle.NameHindi = submenu.DisplayNameHindi;
_this82.pageTitle.ImagePath = submenu.IconImage;
_this82.commonService.SetWebTitle(_this82.translate.currentLang == 'hi' ? _this82.pageTitle.NameHindi : _this82.pageTitle.NameEnglish);
}
}
}, function (error) {});
}
}, {
key: "GetIsAuthenticationRequired",
value: function GetIsAuthenticationRequired(deptCode, lookupCode, pageCode) {
var _this83 = this;
this.model = undefined;
this.departmentProfile.GetIsAuthenticationRequired(Number(deptCode), Number(lookupCode), Number(pageCode)).subscribe(function (res) {
if (res.IsSuccess) {
_this83.isAuthenticationRequired = res.Data.IsAuthenticationRequired;
if (_this83.isAuthenticationRequired) {
_this83._router.navigate(["registration"], {
queryParams: {
pageCode: pageCode
}
});
} else {
_this83.GetDepartmentPageDetail(_this83.DepartmentCode ? _this83.DepartmentCode : 0, _this83.LookupCode ? _this83.LookupCode : _this83.LookupCode, _this83.pageCode ? _this83.pageCode : _this83.pageCode);
}
}
}, function (error) {
console.error(error);
});
}
}, {
key: "GetDepartmentPageDetail",
value: function GetDepartmentPageDetail(deptCode, lookupCode, pageCode) {
var _this84 = this;
sessionStorage.removeItem('IsVerified');
this.model = undefined;
this.departmentProfile.GetDepartmentPageDetail(Number(deptCode), Number(lookupCode), Number(pageCode)).subscribe(function (res) {
if (res.IsSuccess) {
var cat = res.Data;
_this84.model = res.Data;
_this84.pageTitle.NameEnglish = cat.SubjectEng;
_this84.pageTitle.NameHindi = cat.SubjectHindi;
if (_this84.model.DepartmentCode && src_environments_environment__WEBPACK_IMPORTED_MODULE_4__[
/* environment */
"a"].LocalWebsiteCode == '4444') {
localStorage.setItem("websiteCode", _this84.model.DepartmentCode.toString());
_this84.getDepartmentDetail(Number(_this84.model.DepartmentCode));
_this84.GetDepartmentMenuList(Number(_this84.model.DepartmentCode));
}
if (cat && _this84.submenuCode == 0) {
_this84.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__[
/* PageTitleModel */
"f"]();
_this84.pageTitle.NameEnglish = cat.SubjectEng;
_this84.pageTitle.NameHindi = cat.SubjectHindi;
_this84.commonService.SetWebTitle(_this84.translate.currentLang == 'hi' ? _this84.pageTitle.NameHindi : _this84.pageTitle.NameEnglish);
}
if (_this84.model.DepartmentPagesMetaKeyword) {
_this84.keywords = _this84.model.DepartmentPagesMetaKeyword;
_this84.metaTagService.updateTag({
name: 'keywords',
content: _this84.keywords
});
}
if (_this84.model.DepartmentPagesMetaDescription) {
_this84.description = _this84.model.DepartmentPagesMetaDescription;
_this84.metaTagService.updateTag({
name: 'description',
content: _this84.description
});
}
}
}, function (error) {
console.error(error);
});
}
}, {
key: "getDepartmentDetail",
value: function getDepartmentDetail(deptCode) {
var _this85 = this;
debugger;
if (Number.isNaN(deptCode) == true) {
this.router.navigate(["page-not-found"]);
}
this._departmentService.GetDepartmentDetailByDptCode(deptCode).subscribe(function (response) {
var _a, _b, _c;
if (response.Data == null || response.IsSuccess == false) {
_this85.router.navigate(["page-not-found"]);
}
if (response.IsSuccess) {
_this85.dptModel = (_a = response) === null || _a === void 0 ? void 0 : _a.Data;
if (_this85.dptModel) {
if (_this85.dptModel.WebsiteLogoPath) {
//set favicon icon
_this85._commonService.changeFaviconIcon(_this85.dptModel.WebsiteLogoPath);
} // let lang = localStorage.getItem("language");
// if (this.dptModel?.DefaultLanguage || lang) {
// this._commonService.ChangeLanguage(this.dptModel?.DefaultLanguage || lang);
// }
if ((_b = _this85.dptModel) === null || _b === void 0 ? void 0 : _b.WebsiteImage) {
var backgroundImage = (_c = _this85.dptModel) === null || _c === void 0 ? void 0 : _c.WebsiteImage;
_this85.dptModel.WebsiteImage = backgroundImage.split(' ').join('%20');
} else {
_this85.dptModel.WebsiteImage = 'assets/images/website/bg-patter-1.jpg';
}
_this85.dptModel.IFrameURLSafe = _this85.sanitizer.bypassSecurityTrustResourceUrl(_this85.dptModel.IFrameURL);
_this85.templateClass = _this85.dptModel.TemplateClass;
var isDist = _this85.dptModel.DepartmentDistrictCode == _this85.enumdata.District;
localStorage.setItem("IsDistrict", JSON.stringify(isDist));
localStorage.setItem("DistrictName", _this85.dptModel.DepartmentTitle);
localStorage.setItem("DistrictNameHindi", _this85.dptModel.DepartmentTitleHindi);
localStorage.setItem("FolderName", _this85.dptModel.FolderName);
localStorage.setItem("MenuBarClass", _this85.dptModel.MenuBarClass);
localStorage.setItem("IsHideTenderFromHome", _this85.dptModel.IsHideTenderFromHome);
localStorage.setItem("TemplateClass", _this85.templateClass);
localStorage.setItem("metaKeywords", _this85.dptModel.MetaTagKeywords);
localStorage.setItem("metaDescription", _this85.dptModel.MetaTagDescriptions);
localStorage.setItem("IsCodeOfConduct", JSON.stringify(_this85.dptModel.IsCodeOfConduct));
_this85._commonService.SetWebTitle(_this85.translate.currentLang == 'hi' ? "मुख पृष्ठ" : "Home");
if (localStorage.getItem('metaKeywords') == "undefined" || localStorage.getItem('metaKeywords') == "null") {
_this85.keywords = 'Jankalyan Portal, Public Welfare Portal, जनकल्याण पोर्टल, Government of Rajasthan, राजस्थान सरकार, Jaipur, Rajasthan, Portal';
} else {
_this85.keywords = localStorage.getItem('metaKeywords');
}
_this85.metaTagService.updateTag({
name: 'keywords',
content: _this85.keywords
});
if (localStorage.getItem('metaDescription') == "undefined" || localStorage.getItem('metaDescription') == "null") {
_this85.description = "The government of Rajasthan is committed to public welfare as well being of its public is the priority of the Government.Jankalyan portal(a Public Welfare Portal) fulfills this ideology of Hon’ble Chief Minister of Rajasthan “जनकल्याण ही प्राथमिकता जनकल्याण ही प्रतिबद्धता”";
} else {
_this85.description = localStorage.getItem('metaDescription');
}
_this85.metaTagService.updateTag({
name: 'description',
content: _this85.description
});
_this85._departmentService.setDepartmentDetail(_this85.dptModel); // if (this.dptModel.MetaTagKeywords == null || this.dptModel.MetaTagKeywords == undefined) {
// this.keywords = 'Jankalyan Portal, Public Welfare Portal, जनकल्याण पोर्टल, Government of Rajasthan, राजस्थान सरकार, Jaipur, Rajasthan, Portal';
// } else {
// this.keywords = this.dptModel.MetaTagKeywords;
// }
// this.metaTagService.updateTag({ name: 'keywords', content: this.keywords });
// // localStorage.setItem("metaKeywords", this.keywords);
// if (this.dptModel.MetaTagDescription == null || this.dptModel.MetaTagDescription == undefined) {
// this.description = 'The government of Rajasthan is committed to public welfare as well being of its public is the priority of the Government.Jankalyan portal(a Public Welfare Portal) fulfills this ideology of Hon’ble Chief Minister of Rajasthan “जनकल्याण ही प्राथमिकता जनकल्याण ही प्रतिबद्धता”';
// } else {
// this.description = this.dptModel.MetaTagDescription;
// }
// this.metaTagService.updateTag({ name: 'description', content: this.description });
// if (this.dptModel.MetaTagKeywords == null || this.dptModel.MetaTagKeywords == undefined) {
// this.keywords = 'Jankalyan Portal, Public Welfare Portal, जनकल्याण पोर्टल, Government of Rajasthan, राजस्थान सरकार, Jaipur, Rajasthan, Portal';
// } else {
// this.keywords = this.dptModel.MetaTagKeywords;
// }
// localStorage.setItem("metaKeywords", this.keywords);
// if (this.dptModel.MetaTagDescriptions == null || this.dptModel.MetaTagDescriptions == undefined) {
// this.description = 'The government of Rajasthan is committed to public welfare as well being of its public is the priority of the Government.Jankalyan portal(a Public Welfare Portal) fulfills this ideology of Hon’ble Chief Minister of Rajasthan “जनकल्याण ही प्राथमिकता जनकल्याण ही प्रतिबद्धता”';
// } else {
// this.description = this.dptModel.MetaTagDescriptions;
// }
// localStorage.setItem("metaDescription", this.description);
}
}
}, function (error) {});
}
}, {
key: "GetDepartmentMenuList",
value: function GetDepartmentMenuList(deptCode) {
var _this86 = this;
this._departmentService.GetDepartmentMenuList(deptCode).subscribe(function (response) {
if (response.IsSuccess) {
var menuListModel = response.Data;
if (menuListModel) {
_this86._departmentService.setDeptMenuList(menuListModel);
}
}
}, function (error) {
console.error(error);
});
}
}, {
key: "skipToMainContent",
value: function skipToMainContent() {
this.skipper.nativeElement.focus();
}
}, {
key: "onSkipToNavbar",
value: function onSkipToNavbar() {
//this.openNav();
this.skipperNavbar.nativeElement.focus();
}
}, {
key: "setFont",
value: function setFont(size) {
if (size == undefined) {
this.fontSize = sessionStorage.getItem("fontSize") != null ? Number(sessionStorage.getItem("fontSize")) : this.fontSize;
} else {
this.fontSize = size;
sessionStorage.setItem("fontSize", this.fontSize.toString());
}
this.pageBody.nativeElement.style.fontSize = "".concat(this.fontSize, "px");
}
}, {
key: "setTheme",
value: function setTheme() {
var _this87 = this;
var cssClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
if (cssClass == "") {
cssClass = localStorage.getItem("currentTheme") != null ? localStorage.getItem("currentTheme") : "theme-default";
} else {
localStorage.setItem("currentTheme", cssClass);
}
var el = this.pageBody.nativeElement;
var classes = el.className.split(" ");
var regex = /^b\d$/;
classes.forEach(function (cl) {
if (cl.length > 0) {
_this87.renderer.removeClass(el, cl);
}
});
if (cssClass != undefined) {
this.renderer.addClass(el, cssClass);
} else {
this.renderer.addClass(el, "theme-default");
}
}
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
if (localStorage.getItem('metaKeywords') == "undefined" || localStorage.getItem('metaKeywords') == "null") {
this.keywords = 'Jankalyan Portal, Public Welfare Portal, जनकल्याण पोर्टल, Government of Rajasthan, राजस्थान सरकार, Jaipur, Rajasthan, Portal';
} else {
this.keywords = localStorage.getItem('metaKeywords');
}
this.metaTagService.updateTag({
name: 'keywords',
content: this.keywords
});
if (localStorage.getItem('metaDescription') == "undefined" || localStorage.getItem('metaDescription') == "null") {
this.description = "The government of Rajasthan is committed to public welfare as well being of its public is the priority of the Government.Jankalyan portal(a Public Welfare Portal) fulfills this ideology of Hon’ble Chief Minister of Rajasthan “जनकल्याण ही प्राथमिकता जनकल्याण ही प्रतिबद्धता”";
} else {
this.description = localStorage.getItem('metaDescription');
}
this.metaTagService.updateTag({
name: 'description',
content: this.description
});
}
}]);
}();
DepartmentPageDetailComponent.ɵfac = function DepartmentPageDetailComponent_Factory(t) {
return new (t || DepartmentPageDetailComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_department_profile_service__WEBPACK_IMPORTED_MODULE_6__[
/* DepartmentProfileService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__[
/* DomSanitizer */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_9__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_9__[
/* Router */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_10__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_11__[
/* DptDistrictWebsiteService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_department_service__WEBPACK_IMPORTED_MODULE_12__[
/* DepartmentService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_9__[
/* Router */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_10__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_app_service__WEBPACK_IMPORTED_MODULE_13__[
/* AppService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__[
/* Meta */
"c"]));
};
DepartmentPageDetailComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdefineComponent */
"Pb"]({
type: DepartmentPageDetailComponent,
selectors: [["app-department-page-detail"]],
viewQuery: function DepartmentPageDetailComponent_Query(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵviewQuery */
"bd"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵviewQuery */
"bd"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵviewQuery */
"bd"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵviewQuery */
"bd"](_c3, true);
}
if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵqueryRefresh */
"Jc"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵloadQuery */
"jc"]()) && (ctx.skipper = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵqueryRefresh */
"Jc"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵloadQuery */
"jc"]()) && (ctx.skipperNavbar = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵqueryRefresh */
"Jc"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵloadQuery */
"jc"]()) && (ctx.pageBody = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵqueryRefresh */
"Jc"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵloadQuery */
"jc"]()) && (ctx.pdfContent = _t.first);
}
},
inputs: {
pageUrlCode: "pageUrlCode"
},
decls: 10,
vars: 9,
consts: [["id", "sticky-anchor"], ["class", "breadcrumb_nav", "aria-label", "breadcrumb", 4, "ngIf"], [1, "col-lg-12", "mt-5"], [1, "title", "text-center", "mb-1"], [1, "img-fluid", 3, "src", "title", "alt"], [4, "ngIf"], ["class", "inner-p age page-about page-editor-entry-design", 4, "ngIf"], [3, "showImage", 4, "ngIf"], ["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "container", "p-0"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [1, "inner-p", "age", "page-about", "page-editor-entry-design"], [1, "container"], [1, "row"], ["class", "col-lg-12", 4, "ngIf"], [1, "col-lg-12"], [1, "about-yajona-text"], ["style", "text-align: end;", 4, "ngIf"], [1, "pdf-wrapper"], ["pdfContent", ""], [1, "department-page-html", 3, "innerHTML"], [2, "text-align", "end"], ["title", "High quality PDF download", 1, "btn", "btn-primary", "mt-3", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm me-1", 4, "ngIf"], [1, "spinner-border", "spinner-border-sm", "me-1"], [3, "showImage"]],
template: function DepartmentPageDetailComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](1, DepartmentPageDetailComponent_nav_1_Template, 10, 6, "nav", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "h1", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](4, "img", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](5, DepartmentPageDetailComponent_span_5_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](6, DepartmentPageDetailComponent_span_6_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](7, DepartmentPageDetailComponent_section_7_Template, 5, 1, "section", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](8, DepartmentPageDetailComponent_app_mini_loader_8_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](9, DepartmentPageDetailComponent_app_no_records_9_Template, 1, 1, "app-no-records", 7);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageUrlCode);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("src", (ctx.pageTitle == null ? null : ctx.pageTitle.ImagePath) || "assets/images/requered-doc.png", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.model);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.model);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.model && ctx.commonService.GetObjectLength(ctx.model) == 0);
}
},
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_14__[
/* NgIf */
"n"], _angular_router__WEBPACK_IMPORTED_MODULE_9__[
/* RouterLinkWithHref */
"d"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_15__[
/* MiniLoaderComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_16__[
/* NoRecordsComponent */
"a"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__[
/* TranslatePipe */
"c"]],
styles: ["", ".department-page-html[_ngcontent-%COMP%] {\n width: 100%;\n overflow-x: scroll;\n }"]
});
return DepartmentPageDetailComponent;
}();
/***/
},
/***/
"I55L":
/***/
function I55L(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return isArrayLike;
});
var isArrayLike = function isArrayLike(x) {
return x && typeof x.length === 'number' && typeof x !== 'function';
}; //# sourceMappingURL=isArrayLike.js.map
/***/
},
/***/
"IKal":
/***/
function IKal(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var ArgumentOutOfRangeErrorImpl =
/*@__PURE__*/
function () {
function ArgumentOutOfRangeErrorImpl() {
Error.call(this);
this.message = 'argument out of range';
this.name = 'ArgumentOutOfRangeError';
return this;
}
ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);
return ArgumentOutOfRangeErrorImpl;
}();
exports.ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl;
/***/
},
/***/
"IjjT":
/***/
function IjjT(module, __webpack_exports__, __webpack_require__) {
"use strict"; // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/Scheduler.js
var Scheduler =
/*@__PURE__*/
function () {
var Scheduler =
/*#__PURE__*/
function () {
function Scheduler(SchedulerAction) {
var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Scheduler.now;
_classCallCheck(this, Scheduler);
this.SchedulerAction = SchedulerAction;
this.now = now;
}
return _createClass2(Scheduler, [{
key: "schedule",
value: function schedule(work) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var state = arguments.length > 2 ? arguments[2] : undefined;
return new this.SchedulerAction(this, work).schedule(state, delay);
}
}]);
}();
Scheduler.now = function () {
return Date.now();
};
return Scheduler;
}(); //# sourceMappingURL=Scheduler.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/scheduler/AsyncScheduler.js
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AsyncScheduler_AsyncScheduler;
});
var AsyncScheduler_AsyncScheduler =
/*#__PURE__*/
function (_Scheduler) {
function AsyncScheduler_AsyncScheduler(SchedulerAction) {
var _this88;
var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Scheduler.now;
_classCallCheck(this, AsyncScheduler_AsyncScheduler);
_this88 = _callSuper(this, AsyncScheduler_AsyncScheduler, [SchedulerAction, function () {
if (AsyncScheduler_AsyncScheduler.delegate && AsyncScheduler_AsyncScheduler.delegate !== _assertThisInitialized(_this88)) {
return AsyncScheduler_AsyncScheduler.delegate.now();
} else {
return now();
}
}]);
_this88.actions = [];
_this88.active = false;
_this88.scheduled = undefined;
return _this88;
}
_inherits(AsyncScheduler_AsyncScheduler, _Scheduler);
return _createClass2(AsyncScheduler_AsyncScheduler, [{
key: "schedule",
value: function schedule(work) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var state = arguments.length > 2 ? arguments[2] : undefined;
if (AsyncScheduler_AsyncScheduler.delegate && AsyncScheduler_AsyncScheduler.delegate !== this) {
return AsyncScheduler_AsyncScheduler.delegate.schedule(work, delay, state);
} else {
return _superPropGet(AsyncScheduler_AsyncScheduler, "schedule", this, 3)([work, delay, state]);
}
}
}, {
key: "flush",
value: function flush(action) {
var actions = this.actions;
if (this.active) {
actions.push(action);
return;
}
var error;
this.active = true;
do {
if (error = action.execute(action.state, action.delay)) {
break;
}
} while (action = actions.shift());
this.active = false;
if (error) {
while (action = actions.shift()) {
action.unsubscribe();
}
throw error;
}
}
}]);
}(Scheduler); //# sourceMappingURL=AsyncScheduler.js.map
/***/
},
/***/
"IzEk":
/***/
function IzEk(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return take;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7o/Q");
/* harmony import */
var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("4I5i");
/* harmony import */
var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("EY2u");
function take(count) {
return function (source) {
if (count === 0) {
return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__[
/* empty */
"b"])();
} else {
return source.lift(new TakeOperator(count));
}
};
}
var TakeOperator =
/*#__PURE__*/
function () {
function TakeOperator(total) {
_classCallCheck(this, TakeOperator);
this.total = total;
if (this.total < 0) {
throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__[
/* ArgumentOutOfRangeError */
"a"]();
}
}
return _createClass2(TakeOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new TakeSubscriber(subscriber, this.total));
}
}]);
}();
var TakeSubscriber =
/*#__PURE__*/
function (_Subscriber__WEBPACK_) {
function TakeSubscriber(destination, total) {
var _this89;
_classCallCheck(this, TakeSubscriber);
_this89 = _callSuper(this, TakeSubscriber, [destination]);
_this89.total = total;
_this89.count = 0;
return _this89;
}
_inherits(TakeSubscriber, _Subscriber__WEBPACK_);
return _createClass2(TakeSubscriber, [{
key: "_next",
value: function _next(value) {
var total = this.total;
var count = ++this.count;
if (count <= total) {
this.destination.next(value);
if (count === total) {
this.destination.complete();
this.unsubscribe();
}
}
}
}]);
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__[
/* Subscriber */
"a"]); //# sourceMappingURL=take.js.map
/***/
},
/***/
"K2V9":
/***/
function K2V9(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return SchemeService;
});
/* harmony import */
var _Model_dictionary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ADQb");
/* harmony import */
var _Model_app_setting__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GAWG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("MLVi");
var SchemeService =
/*@__PURE__*/
function () {
var SchemeService =
/*#__PURE__*/
function () {
function SchemeService(_baseService) {
_classCallCheck(this, SchemeService);
this._baseService = _baseService;
}
return _createClass2(SchemeService, [{
key: "GetSchemeData",
value: function GetSchemeData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeListUrl, model);
}
}, {
key: "GetFilterSchemeData",
value: function GetFilterSchemeData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetFilterSchemeListUrl, model);
}
}, {
key: "GetById",
value: function GetById(id) {
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_0__[
/* Dictionary */
"a"]();
param.Add("id", id);
var result = this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].SchemeGetUrlById, param);
return result;
}
}, {
key: "GetSchemeFaq",
value: function GetSchemeFaq(schemeId) {
var param = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_0__[
/* Dictionary */
"a"]();
param.Add("id", schemeId);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeFaqUrl, param);
}
}, {
key: "GetSchemeGallaryListData",
value: function GetSchemeGallaryListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeGallaryListUrl, model);
}
}, {
key: "GetSchemeGallaryImageListData",
value: function GetSchemeGallaryImageListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeGallaryPhotosListUrl, model);
}
}, {
key: "GetSchemeGallaryVideoListData",
value: function GetSchemeGallaryVideoListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeGallaryVideoListUrl, model);
}
}, {
key: "GetSchemeGallaryYoutubeListData",
value: function GetSchemeGallaryYoutubeListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeGallaryYoutubeListUrl, model);
}
}, {
key: "GetSchemeGallaryVideoYoutubeListData",
value: function GetSchemeGallaryVideoYoutubeListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeGallaryVideoYoutubeListUrl, model);
}
}, {
key: "GetTopSchemeByDepartment",
value: function GetTopSchemeByDepartment(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetTopSchemeByDepartmentListUrl, model);
}
}, {
key: "GetOrderListByScheme",
value: function GetOrderListByScheme(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].OrderListUrl, model);
}
}, {
key: "GetImportantDecisionListData",
value: function GetImportantDecisionListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetImportantDecisionListurl, model);
}
}, {
key: "GetSchemeStatusListBySchemeCode",
value: function GetSchemeStatusListBySchemeCode(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetSchemeStatusListurl, model);
}
}, {
key: "GetGalleryData",
value: function GetGalleryData(model, excludeTypes) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_1__[
/* AppSetting */
"a"].GetGalleryDataUrl + '?excludeUploadType=' + excludeTypes, model);
}
}]);
}();
SchemeService.ɵfac = function SchemeService_Factory(t) {
return new (t || SchemeService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵinject */
"ec"](_base_service__WEBPACK_IMPORTED_MODULE_3__[
/* BaseService */
"a"]));
};
SchemeService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdefineInjectable */
"Rb"]({
token: SchemeService,
factory: SchemeService.ɵfac,
providedIn: 'root'
});
return SchemeService;
}();
/***/
},
/***/
"Kqap":
/***/
function Kqap(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return scan;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7o/Q");
function scan(accumulator, seed) {
var hasSeed = false;
if (arguments.length >= 2) {
hasSeed = true;
}
return function scanOperatorFunction(source) {
return source.lift(new ScanOperator(accumulator, seed, hasSeed));
};
}
var ScanOperator =
/*#__PURE__*/
function () {
function ScanOperator(accumulator, seed) {
var hasSeed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
_classCallCheck(this, ScanOperator);
this.accumulator = accumulator;
this.seed = seed;
this.hasSeed = hasSeed;
}
return _createClass2(ScanOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));
}
}]);
}();
var ScanSubscriber =
/*#__PURE__*/
function (_Subscriber__WEBPACK_2) {
function ScanSubscriber(destination, accumulator, _seed, hasSeed) {
var _this90;
_classCallCheck(this, ScanSubscriber);
_this90 = _callSuper(this, ScanSubscriber, [destination]);
_this90.accumulator = accumulator;
_this90._seed = _seed;
_this90.hasSeed = hasSeed;
_this90.index = 0;
return _this90;
}
_inherits(ScanSubscriber, _Subscriber__WEBPACK_2);
return _createClass2(ScanSubscriber, [{
key: "seed",
get: function get() {
return this._seed;
},
set: function set(value) {
this.hasSeed = true;
this._seed = value;
}
}, {
key: "_next",
value: function _next(value) {
if (!this.hasSeed) {
this.seed = value;
this.destination.next(value);
} else {
return this._tryNext(value);
}
}
}, {
key: "_tryNext",
value: function _tryNext(value) {
var index = this.index++;
var result;
try {
result = this.accumulator(this.seed, value, index);
} catch (err) {
this.destination.error(err);
}
this.seed = result;
this.destination.next(result);
}
}]);
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__[
/* Subscriber */
"a"]); //# sourceMappingURL=scan.js.map
/***/
},
/***/
"LBXl":
/***/
function LBXl(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var UnsubscriptionErrorImpl =
/*@__PURE__*/
function () {
function UnsubscriptionErrorImpl(errors) {
Error.call(this);
this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) {
return i + 1 + ") " + err.toString();
}).join('\n ') : '';
this.name = 'UnsubscriptionError';
this.errors = errors;
return this;
}
UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);
return UnsubscriptionErrorImpl;
}();
exports.UnsubscriptionError = UnsubscriptionErrorImpl;
/***/
},
/***/
"LRne":
/***/
function LRne(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return of;
});
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("z+Ro");
/* harmony import */
var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("yCtX");
/* harmony import */
var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("jZKg");
function of() {
for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
args[_key3] = arguments[_key3];
}
var scheduler = args[args.length - 1];
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__[
/* isScheduler */
"a"])(scheduler)) {
args.pop();
return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__[
/* scheduleArray */
"a"])(args, scheduler);
} else {
return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__[
/* fromArray */
"a"])(args);
}
} //# sourceMappingURL=of.js.map
/***/
},
/***/
"LYBR":
/***/
function LYBR(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return CommonService;
});
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("XNiG");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ofXK");
/* harmony import */
var _Enum_url_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("AeFW");
/* harmony import */
var _Model_dictionary__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ADQb");
/* harmony import */
var _Model_app_setting__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("GAWG");
/* harmony import */
var sweetalert2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("PSD3");
/* harmony import */
var sweetalert2__WEBPACK_IMPORTED_MODULE_5___default =
/*#__PURE__*/
__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("MLVi");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("jhN1");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("tyNb");
var CommonService =
/*@__PURE__*/
function () {
var CommonService =
/*#__PURE__*/
function () {
function CommonService(_baseService, translate, _titleService, _location, router) {
_classCallCheck(this, CommonService);
this._baseService = _baseService;
this.translate = translate;
this._titleService = _titleService;
this._location = _location;
this.router = router;
this.updateMenu = new rxjs__WEBPACK_IMPORTED_MODULE_0__[
/* Subject */
"a"]();
}
return _createClass2(CommonService, [{
key: "changeLanguage",
value: function changeLanguage(language) {
if (language && (language == 'en' || language == 'hi')) {
this.translate.use(language);
localStorage.setItem("language", language);
}
}
}, {
key: "changeFaviconIcon",
value: function changeFaviconIcon(url) {
var favIcon = document.querySelector('#appFavicon');
favIcon.href = url;
}
}, {
key: "GetObjectLength",
value: function GetObjectLength(obj) {
if (obj) return Object.keys(obj).length;else return 0;
}
}, {
key: "ConvertMbintoByte",
value: function ConvertMbintoByte(data) {
return data * 1024 * 1024;
} // SetWebTitle(title: string) {
// title = title.trim();
// let distName = "";
// if (localStorage.getItem("DistrictName") == null || localStorage.getItem("DistrictName") == undefined) {
// distName = 'District Portal';
// } else {
// distName = localStorage.getItem("DistrictName");
// }
// let distNameHindi = "";
// if (localStorage.getItem("DistrictNameHindi") == undefined || localStorage.getItem("DistrictNameHindi") == null) {
// distNameHindi = 'जिला पोर्टल';
// } else {
// distNameHindi = localStorage.getItem("DistrictNameHindi");
// }
// title += this.translate.currentLang == "hi" ? ((title?.length > 0 ? " | " : "") + distNameHindi + ", राजस्थान सरकार") : ((title?.length > 0 ? " | " : "") + distName + ", Rajasthan Government");
// this._titleService.setTitle(title);
// }
}, {
key: "SetWebTitle",
value: function SetWebTitle(title) {
var _a, _b;
title = title.trim();
var isDist = this.IsDistrict();
if (this.translate.currentLang == "hi") {
var portalNameHindi = isDist ? 'जिला पोर्टल' : 'विभाग पोर्टल';
var lsPortalNameHindi = localStorage.getItem("DistrictNameHindi");
if (lsPortalNameHindi) {
portalNameHindi = lsPortalNameHindi;
}
title += (((_a = title) === null || _a === void 0 ? void 0 : _a.length) > 0 ? " | " : "") + portalNameHindi + ", राजस्थान सरकार";
} else {
var portalName = isDist ? 'District Portal' : 'Department Portal';
var lsPortalName = localStorage.getItem("DistrictName");
if (lsPortalName) {
portalName = lsPortalName;
}
title += (((_b = title) === null || _b === void 0 ? void 0 : _b.length) > 0 ? " | " : "") + portalName + ", Rajasthan Government";
}
this._titleService.setTitle(title);
}
}, {
key: "GetWebDistDeptCode",
value: function GetWebDistDeptCode() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var deptcode = value;
var ls_deptCode = localStorage.getItem("websiteCode");
if (ls_deptCode) {
deptcode = Number(ls_deptCode);
}
return deptcode;
}
}, {
key: "GetLanguage",
value: function GetLanguage() {
var lang = localStorage.getItem("language");
return lang ? lang : 'hi';
}
}, {
key: "GetLocalStorageVal",
value: function GetLocalStorageVal(keyName) {
var key = localStorage.getItem(keyName);
if (key) {
return key;
}
return '';
}
}, {
key: "GetHomePageUrl",
value: function GetHomePageUrl() {
return '/' + _Enum_url_enum__WEBPACK_IMPORTED_MODULE_2__[
/* UrlEnum */
"a"].HomeUrl + '' + String(this.GetWebDistDeptCode());
}
}, {
key: "IsDistrict",
value: function IsDistrict() {
var isDist = false;
var ls_isDist = localStorage.getItem("IsDistrict");
if (ls_isDist) {
isDist = JSON.parse(ls_isDist);
}
return isDist;
}
}, {
key: "numberOnly",
value: function numberOnly(event) {
var isCommaOrDash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var charCode = event.which ? event.which : event.keyCode;
if (isCommaOrDash) {
if (charCode == 44 || charCode == 45) {
return true;
}
}
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
return false;
}
return true;
}
}, {
key: "GetHindiMonthDate",
value: function GetHindiMonthDate(inputDate) {
var monthNames = ["जनवरी", "फरवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितंबर", "अक्टूबर", "नवंबर", "दिसंबर"];
var monthNamesEng = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var Month = monthNames[new Date().getMonth()];
var datePipe = new _angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* DatePipe */
"e"]("en-US");
var currentDt = datePipe.transform(inputDate, "MMMM dd yyyy");
currentDt.toString().replace(monthNamesEng[inputDate.getMonth()], Month.toString());
return currentDt.toString().replace(monthNamesEng[inputDate.getMonth()], Month.toString());
}
}, {
key: "GetIpAddress",
value: function GetIpAddress() {
return this._baseService.get("https://jsonip.com");
}
}, {
key: "ShareOnWhatsapp",
value: function ShareOnWhatsapp() {
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
var link = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
window.open("https://web.whatsapp.com/send?text=*" + text + "* %0a" + link, '_blank');
}
}, {
key: "ChangeLanguage",
value: function ChangeLanguage(language) {
this.translate.use(language);
localStorage.setItem("language", language);
}
}, {
key: "GetMapLayer",
value: function GetMapLayer(LayerName) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_4__[
/* AppSetting */
"a"].HereMapLayerUrl + LayerName);
}
}, {
key: "setFocus",
value: function setFocus(id) {
// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
var element = document.getElementById(id);
element.scrollIntoView({
behavior: "smooth",
block: "center",
inline: "nearest"
});
}
}, {
key: "gotoPreviousPage",
value: function gotoPreviousPage() {
this._location.back();
}
}, {
key: "IsDocExtenstionURL",
value: function IsDocExtenstionURL(url) {
var docDgx = new RegExp(/\.(?:pdf|PDF|doc|docx|xlsx|xls)$/i);
if (docDgx.test(url)) {
return true;
} else {
return false;
}
}
}, {
key: "GetDeptCodeByVirtualDirectory",
value: function GetDeptCodeByVirtualDirectory(base) {
var dir = document.location.pathname.split('/')[1];
dir = dir.toLocaleLowerCase();
if (dir) {
//#region animalhusbandry -- (masking: medicalportal.rajasthan.gov.in)
if (base == 'animalhusbandry' && dir == 'ah') {
return '10';
} else if (base == 'animalhusbandry' && dir == 'ahtikota') {
return '1880';
} else if (base == 'animalhusbandry' && dir == 'ahtiudaipur') {
return '1878';
} else if (base == 'animalhusbandry' && dir == 'ahtijodhpur') {
return '1876';
} else if (base == 'animalhusbandry' && dir == 'ahtijaipur') {
return '1879';
} //#endregion
//#region agriculture -- (masking: medicalportal.rajasthan.gov.in)
else if (base == 'agriculture' && dir == 'agriculture') {
return '5';
} else if (base == 'agriculture' && dir == 'rsamb') {
return '6';
} else if (base == 'agriculture' && dir == 'dam') {
return '7';
} else if (base == 'agriculture' && dir == 'horticulture') {
return '81';
} else if (base == 'agriculture' && dir == 'rka') {
return '335';
} else if (base == 'agriculture' && dir == 'rocl') {
return '339';
} else if (base == 'agriculture' && dir == 'rssoca') {
return '294';
} else if (base == 'agriculture' && dir == 'rsscl') {
return '149';
} else if (base == 'agriculture' && dir == 'rswc') {
return '150';
} else if (base == 'agriculture' && dir == 'siam') {
return '284';
} //#endregion
//#region medicaleducation -- (masking: medicalportal.rajasthan.gov.in)
else if (base == 'medicaleducation' && dir == 'me') {
return '102';
} else if (base == 'medicaleducation' && dir == 'smsjaipur') {
return '357';
} else if (base == 'medicaleducation' && dir == 'mcjodhpur') {
return '257';
} else if (base == 'medicaleducation' && dir == 'jlnajmer') {
return '306';
} else if (base == 'medicaleducation' && dir == 'rntudaipur') {
return '270';
} else if (base == 'medicaleducation' && dir == 'mcbikaner') {
return '286';
} else if (base == 'medicaleducation' && dir == 'rajmes') {
return '505';
} else if (base == 'medicaleducation' && dir == 'mckota') {
return '302';
} else if (base == 'medicaleducation' && dir == 'mcjhalawar') {
return '230';
} else if (base == 'medicaleducation' && dir == 'mcbarmer') {
return '487';
} else if (base == 'medicaleducation' && dir == 'mcbharatpur') {
return '490';
} else if (base == 'medicaleducation' && dir == 'mcbhilwara') {
return '489';
} else if (base == 'medicaleducation' && dir == 'mcchuru') {
return '488';
} else if (base == 'medicaleducation' && dir == 'mcdungarpur') {
return '492';
} else if (base == 'medicaleducation' && dir == 'mcpali') {
return '491';
} else if (base == 'medicaleducation' && dir == 'mcsikar') {
return '486';
} else if (base == 'medicaleducation' && dir == 'mcnagaur') {
return '498';
} else if (base == 'medicaleducation' && dir == 'mcalwar') {
return '497';
} else if (base == 'medicaleducation' && dir == 'mcbundi') {
return '1001';
} else if (base == 'medicaleducation' && dir == 'mcchittorgarh') {
return '501';
} else if (base == 'medicaleducation' && dir == 'mcdausa') {
return '999';
} else if (base == 'medicaleducation' && dir == 'mcdholpur') {
return '502';
} else if (base == 'medicaleducation' && dir == 'mcganganagar') {
return '503';
} else if (base == 'medicaleducation' && dir == 'mchanumangarh') {
return '1000';
} else if (base == 'medicaleducation' && dir == 'mckarauli') {
return '1002';
} else if (base == 'medicaleducation' && dir == 'mcsirohi') {
return '504';
} else if (base == 'medicaleducation' && dir == 'ruhsdental') {
return '265';
} else if (base == 'medicaleducation' && dir == 'gacjaipur') {
return '1869';
} else if (base == 'medicaleducation' && dir == 'mcbaran') {
return '1864';
} else if (base == 'medicaleducation' && dir == 'mcbanswara') {
return '1865';
} else if (base == 'medicaleducation' && dir == 'mcjhunjhunu') {
return '1866';
} else if (base == 'medicaleducation' && dir == 'mcnagaur') {
return '1867';
} else if (base == 'medicaleducation' && dir == 'mcsawaimdhopur') {
return '1868';
} else if (base == 'medicaleducation' && dir == 'gacbharatpur') {
return '1870';
} else if (base == 'medicaleducation' && dir == 'gackekari') {
return '1860';
} else if (base == 'medicaleducation' && dir == 'gacbikaner') {
return '1862';
} else if (base == 'medicaleducation' && dir == 'mmu') {
return '1872';
} else if (base == 'medicaleducation' && dir == 'gacsikar') {
return '1861';
} //#endregion
//#region water -- (masking: medicalportal.rajasthan.gov.in)
else if (base == 'water' && dir == 'wrpa') {
return '1151';
} else if (base == 'water' && dir == 'swrpd') {
return '1150';
} else if (base == 'water' && dir == 'imtikota') {
return '266';
} else if (base == 'water' && dir == 'cadwu') {
return '153';
} else if (base == 'water' && dir == 'cadchambalkota') {
return '1010';
} else if (base == 'water' && dir == 'cadignpbikaner') {
return '1009';
} else if (base == 'water' && dir == 'cadeastjaipur') {
return '1008';
} else if (base == 'water' && dir == 'wdsc') {
return '143';
} else if (base == 'water' && dir == 'cadbisalpurtonk') {
return '1011';
} else if (base == 'water' && dir == 'ignd') {
return '83';
} else if (base == 'water' && dir == 'wr') {
return '142';
} else if (base == 'water' && dir == 'ercp') {
return '1180';
} //#endregion
//#region wcd -- (masking: medicalportal.rajasthan.gov.in)
else if (base == 'wcd' && dir == 'icds') {
return '82';
} else if (base == 'wcd' && dir == 'we') {
return '144';
} //#endregion
//#region livelihoods -- (masking: medicalportal.rajasthan.gov.in)
else if (base == 'livelihoods' && dir == 'rsldc') {
return '403';
} //#endregion
//#region exciseonline -- (masking: medicalportal.rajasthan.gov.in)
else if (base == 'exciseonline' && dir == 'excise') {
return '66';
} else if (base == 'exciseonline' && dir == 'rsgsm') {
return '1024';
} else if (base == 'exciseonline' && dir == 'rsbcl') {
return '1025';
} //#endregion
//#region pwd -- (masking: medicalportal.rajasthan.gov.in)
else if (base == 'pwd' && dir == 'pwd') {
return '115';
} else if (base == 'pwd' && dir == 'rrsmp') {
return '342';
} else if (base == 'pwd' && dir == 'rsrdc') {
return '126';
} //#endregion
//#region dot
else if (base == 'dot' && dir == 'iti') {
return '156';
} else if (base == 'dot' && dir == 'dtetrg') {
return '402';
} else if (base == 'dot' && dir == 'itiajmer') {
return '506';
} else if (base == 'dot' && dir == 'itibeawar') {
return '508';
} else if (base == 'dot' && dir == 'itijailajmer') {
return '512';
} else if (base == 'dot' && dir == 'itikekri') {
return '514';
} else if (base == 'dot' && dir == 'itikishangarh') {
return '515';
} else if (base == 'dot' && dir == 'itimasooda') {
return '516';
} else if (base == 'dot' && dir == 'itinasirabad') {
return '519';
} else if (base == 'dot' && dir == 'ititantoti') {
return '527';
} else if (base == 'dot' && dir == 'itiwomenajmer') {
return '529';
} else if (base == 'dot' && dir == 'itialwar') {
return '535';
} else if (base == 'dot' && dir == 'itibansur') {
return '537';
} else if (base == 'dot' && dir == 'itibhiwari') {
return '546';
} else if (base == 'dot' && dir == 'itijailalwar') {
return '549';
} else if (base == 'dot' && dir == 'itikishangarhbas') {
return '557';
} else if (base == 'dot' && dir == 'itilachhmangarh') {
return '559';
} else if (base == 'dot' && dir == 'itineemrana') {
return '570';
} else if (base == 'dot' && dir == 'itirajgarh') {
return '573';
} else if (base == 'dot' && dir == 'itiramgarh') {
return '575';
} else if (base == 'dot' && dir == 'itireni') {
return '586';
} else if (base == 'dot' && dir == 'itisuheta') {
return '589';
} else if (base == 'dot' && dir == 'itithanagajialwar') {
return '598';
} else if (base == 'dot' && dir == 'ititijara') {
return '601';
} else if (base == 'dot' && dir == 'itiwomenalwar') {
return '610';
} else if (base == 'dot' && dir == 'itianandpuri') {
return '629';
} else if (base == 'dot' && dir == 'itiarthoona') {
return '633';
} else if (base == 'dot' && dir == 'itibagidora') {
return '639';
} else if (base == 'dot' && dir == 'itibanswara') {
return '649';
} else if (base == 'dot' && dir == 'itichhotisarwa') {
return '652';
} else if (base == 'dot' && dir == 'itighatol') {
return '656';
} else if (base == 'dot' && dir == 'itikushalgarh') {
return '663';
} else if (base == 'dot' && dir == 'itisajjangarh') {
return '669';
} else if (base == 'dot' && dir == 'ititalwara') {
return '676';
} else if (base == 'dot' && dir == 'itiwomenbanswara') {
return '681';
} else if (base == 'dot' && dir == 'itianta') {
return '716';
} else if (base == 'dot' && dir == 'itiatru') {
return '583';
} else if (base == 'dot' && dir == 'itibaran') {
return '737';
} else if (base == 'dot' && dir == 'itichabra') {
return '740';
} else if (base == 'dot' && dir == 'itikelwara') {
return '752';
} else if (base == 'dot' && dir == 'itishahbad') {
return '759';
} else if (base == 'dot' && dir == 'itibalotra') {
return '763';
} else if (base == 'dot' && dir == 'itibarmer') {
return '767';
} else if (base == 'dot' && dir == 'itibaytoo') {
return '771';
} else if (base == 'dot' && dir == 'itichouthan') {
return '776';
} else if (base == 'dot' && dir == 'itichorimanna') {
return '778';
} else if (base == 'dot' && dir == 'itigudamalani') {
return '781';
} else if (base == 'dot' && dir == 'itiramsar') {
return '783';
} else if (base == 'dot' && dir == 'itishiv') {
return '786';
} else if (base == 'dot' && dir == 'itisindhari') {
return '794';
} else if (base == 'dot' && dir == 'itisiwana') {
return '795';
} else if (base == 'dot' && dir == 'itibayana') {
return '796';
} else if (base == 'dot' && dir == 'itibharatpur') {
return '797';
} else if (base == 'dot' && dir == 'itigopalgarh') {
return '798';
} else if (base == 'dot' && dir == 'itijailbharatpur') {
return '799';
} else if (base == 'dot' && dir == 'itijodhpur') {
return '732';
} //800
else if (base == 'dot' && dir == 'itinagar') {
return '836';
} else if (base == 'dot' && dir == 'itipahari') {
return '837';
} else if (base == 'dot' && dir == 'itiasind') {
return '839';
} else if (base == 'dot' && dir == 'itibanera') {
return '842';
} else if (base == 'dot' && dir == 'itibhilwara') {
return '843';
} else if (base == 'dot' && dir == 'itigulabpura') {
return '848';
} else if (base == 'dot' && dir == 'itikotri') {
return '850';
} else if (base == 'dot' && dir == 'itimandal') {
return '852';
} else if (base == 'dot' && dir == 'itimandalgarh') {
return '854';
} else if (base == 'dot' && dir == 'itiraipur') {
return '857';
} else if (base == 'dot' && dir == 'itisahara') {
return '864';
} else if (base == 'dot' && dir == 'itishahpura') {
return '866';
} else if (base == 'dot' && dir == 'itiuncha') {
return '869';
} else if (base == 'dot' && dir == 'itiwomenbhilwara') {
return '870';
} else if (base == 'dot' && dir == 'itibikaner') {
return '871';
} else if (base == 'dot' && dir == 'itichhattargarh') {
return '872';
} else if (base == 'dot' && dir == 'itijailbikaner') {
return '873';
} else if (base == 'dot' && dir == 'itikhajuwala') {
return '874';
} else if (base == 'dot' && dir == 'itilunkaransar') {
return '875';
} else if (base == 'dot' && dir == 'itinokha') {
return '876';
} else if (base == 'dot' && dir == 'itipanchoo') {
return '877';
} else if (base == 'dot' && dir == 'itisridungargarh') {
return '878';
} else if (base == 'dot' && dir == 'itiwomenbikaner') {
return '879';
} else if (base == 'dot' && dir == 'itibundi') {
return '868';
} else if (base == 'dot' && dir == 'itikeshoraipatan') {
return '867';
} else if (base == 'dot' && dir == 'itilakheri') {
return '865';
} else if (base == 'dot' && dir == 'ititalera') {
return '863';
} else if (base == 'dot' && dir == 'itibadisadri') {
return '862';
} else if (base == 'dot' && dir == 'itibegun') {
return '861';
} else if (base == 'dot' && dir == 'itibhadasar') {
return '860';
} else if (base == 'dot' && dir == 'itichittorgarh') {
return '859';
} else if (base == 'dot' && dir == 'itichittorgarh') {
return '858';
} else if (base == 'dot' && dir == 'itigangrar') {
return '856';
} else if (base == 'dot' && dir == 'itikapasan') {
return '855';
} else if (base == 'dot' && dir == 'itirashmi') {
return '853';
} else if (base == 'dot' && dir == 'itirawatbhata') {
return '851';
} else if (base == 'dot' && dir == 'itichuru') {
return '849';
} else if (base == 'dot' && dir == 'itiratangarhchuru') {
return '847';
} else if (base == 'dot' && dir == 'itisujangarhchuru') {
return '846';
} else if (base == 'dot' && dir == 'itibaswa') {
return '844';
} else if (base == 'dot' && dir == 'itidausa') {
return '841';
} else if (base == 'dot' && dir == 'itilawan') {
return '840';
} else if (base == 'dot' && dir == 'itisikrai') {
return '838';
} else if (base == 'dot' && dir == 'itibari') {
return '835';
} else if (base == 'dot' && dir == 'itidhaulpur') {
return '834';
} else if (base == 'dot' && dir == 'itirajakhera') {
return '833';
} else if (base == 'dot' && dir == 'itiseipau') {
return '832';
} else if (base == 'dot' && dir == 'itiaspur') {
return '831';
} else if (base == 'dot' && dir == 'itibichhiwara') {
return '830';
} else if (base == 'dot' && dir == 'iticheekhli') {
return '829';
} else if (base == 'dot' && dir == 'itidovra') {
return '828';
} else if (base == 'dot' && dir == 'itidungarpur') {
return '827';
} else if (base == 'dot' && dir == 'itigaliakot') {
return '826';
} else if (base == 'dot' && dir == 'itijhonthri') {
return '825';
} else if (base == 'dot' && dir == 'itisagwara') {
return '824';
} else if (base == 'dot' && dir == 'itisimalwara') {
return '823';
} else if (base == 'dot' && dir == 'itianupgarh') {
return '822';
} else if (base == 'dot' && dir == 'itijailganganagar') {
return '821';
} else if (base == 'dot' && dir == 'itikaranpur') {
return '820';
} else if (base == 'dot' && dir == 'itipadampur') {
return '819';
} else if (base == 'dot' && dir == 'itisriganganagar') {
return '818';
} else if (base == 'dot' && dir == 'itisuratgarh') {
return '817';
} else if (base == 'dot' && dir == 'itihanumangarh') {
return '816';
} else if (base == 'dot' && dir == 'itisangariya') {
return '815';
} else if (base == 'dot' && dir == 'ititibi') {
return '814';
} else if (base == 'dot' && dir == 'itiamer') {
return '813';
} else if (base == 'dot' && dir == 'itichomu') {
return '812';
} else if (base == 'dot' && dir == 'itidudu') {
return '811';
} else if (base == 'dot' && dir == 'itijaipur') {
return '810';
} else if (base == 'dot' && dir == 'itikhonagorian') {
return '809';
} else if (base == 'dot' && dir == 'itikotputali') {
return '808';
} else if (base == 'dot' && dir == 'itifagi') {
return '807';
} else if (base == 'dot' && dir == 'itipc') {
return '806';
} else if (base == 'dot' && dir == 'itisambhar') {
return '805';
} else if (base == 'dot' && dir == 'itisanganer') {
return '804';
} else if (base == 'dot' && dir == 'itishahpurajaipur') {
return '803';
} else if (base == 'dot' && dir == 'itiwomenjaipur') {
return '802';
} else if (base == 'dot' && dir == 'itiricentrejaipur') {
return '801';
} else if (base == 'dot' && dir == 'itijaisalmer') {
return '793';
} else if (base == 'dot' && dir == 'itipokaran') {
return '792';
} else if (base == 'dot' && dir == 'itisam') {
return '791';
} else if (base == 'dot' && dir == 'itibhinmal') {
return '790';
} else if (base == 'dot' && dir == 'itichitalwana') {
return '789';
} else if (base == 'dot' && dir == 'itijalore') {
return '788';
} else if (base == 'dot' && dir == 'itijaswantpura') {
return '787';
} else if (base == 'dot' && dir == 'itisangod') {
return '686';
} else if (base == 'dot' && dir == 'itiraniwara') {
return '785';
} else if (base == 'dot' && dir == 'itisanchor') {
return '784';
} else if (base == 'dot' && dir == 'itiaklera') {
return '782';
} else if (base == 'dot' && dir == 'itibakani') {
return '780';
} else if (base == 'dot' && dir == 'itibhawanimandi') {
return '779';
} else if (base == 'dot' && dir == 'itijhalawar') {
return '777';
} else if (base == 'dot' && dir == 'itijhaalrapatan') {
return '775';
} else if (base == 'dot' && dir == 'itikhanpur') {
return '774';
} else if (base == 'dot' && dir == 'itipirawa') {
return '773';
} else if (base == 'dot' && dir == 'itibinjusar') {
return '772';
} else if (base == 'dot' && dir == 'itichirawa') {
return '770';
} else if (base == 'dot' && dir == 'itijhunjhunu') {
return '768';
} else if (base == 'dot' && dir == 'itikhetari') {
return '765';
} else if (base == 'dot' && dir == 'itinavalgarh') {
return '760';
} else if (base == 'dot' && dir == 'itibalesar') {
return '756';
} else if (base == 'dot' && dir == 'itibap') {
return '753';
} else if (base == 'dot' && dir == 'itibhopalgarh') {
return '748';
} else if (base == 'dot' && dir == 'itibilara') {
return '746';
} else if (base == 'dot' && dir == 'itijailjodhpur') {
return '735';
} else if (base == 'dot' && dir == 'itijodhpur') {
return '732';
} else if (base == 'dot' && dir == 'itilohawat') {
return '729';
} else if (base == 'dot' && dir == 'itiluni') {
return '728';
} else if (base == 'dot' && dir == 'itimandor') {
return '727';
} else if (base == 'dot' && dir == 'itiphalodi') {
return '726';
} else if (base == 'dot' && dir == 'itipiparcity') {
return '723';
} else if (base == 'dot' && dir == 'itipcjodhpur') {
return '720';
} else if (base == 'dot' && dir == 'itishergarh') {
return '715';
} else if (base == 'dot' && dir == 'itiwomenjodhpur') {
return '712';
} else if (base == 'dot' && dir == 'itikarauli') {
return '708';
} else if (base == 'dot' && dir == 'itinadoti') {
return '706';
} else if (base == 'dot' && dir == 'itisapotara') {
return '702';
} else if (base == 'dot' && dir == 'itichemical') {
return '699';
} else if (base == 'dot' && dir == 'itiitawa') {
return '693';
} else if (base == 'dot' && dir == 'itikherabad') {
return '691';
} else if (base == 'dot' && dir == 'itikota') {
return '689';
} else if (base == 'dot' && dir == 'itipckota') {
return '687';
} else if (base == 'dot' && dir == 'itisangod') {
return '686';
} else if (base == 'dot' && dir == 'itisultanpur') {
return '680';
} else if (base == 'dot' && dir == 'itiwomenkota') {
return '677';
} else if (base == 'dot' && dir == 'itijayal') {
return '672';
} else if (base == 'dot' && dir == 'itikuchamancity') {
return '666';
} else if (base == 'dot' && dir == 'itimertacity') {
return '662';
} else if (base == 'dot' && dir == 'itinagaur') {
return '658';
} else if (base == 'dot' && dir == 'itinawan') {
return '653';
} else if (base == 'dot' && dir == 'itidesuri') {
return '650';
} else if (base == 'dot' && dir == 'itijaitaran') {
return '647';
} else if (base == 'dot' && dir == 'itipali') {
return '643';
} else if (base == 'dot' && dir == 'itiphalna') {
return '640';
} else if (base == 'dot' && dir == 'itirani') {
return '634';
} else if (base == 'dot' && dir == 'itirohat') {
return '631';
} else if (base == 'dot' && dir == 'itisojatcity') {
return '627';
} else if (base == 'dot' && dir == 'itiarnod') {
return '625';
} else if (base == 'dot' && dir == 'itidhariyawad') {
return '623';
} else if (base == 'dot' && dir == 'itipeepalkhoont') {
return '621';
} else if (base == 'dot' && dir == 'itipratapgarh') {
return '609';
} else if (base == 'dot' && dir == 'itiamet') {
return '607';
} else if (base == 'dot' && dir == 'itinathdwara') {
return '603';
} else if (base == 'dot' && dir == 'itirajsamand') {
return '602';
} else if (base == 'dot' && dir == 'itibamanwas') {
return '600';
} else if (base == 'dot' && dir == 'itipratapgarh') {
return '609';
} else if (base == 'dot' && dir == 'itichouthkabarwara') {
return '581';
} else if (base == 'dot' && dir == 'itigangapur') {
return '579';
} else if (base == 'dot' && dir == 'itikhandar') {
return '576';
} else if (base == 'dot' && dir == 'itisawaimadhopur') {
return '571';
} else if (base == 'dot' && dir == 'itifatehpur') {
return '567';
} else if (base == 'dot' && dir == 'itikhund') {
return '566';
} else if (base == 'dot' && dir == 'itisikar') {
return '556';
} else if (base == 'dot' && dir == 'itisrimadhopur') {
return '554';
} else if (base == 'dot' && dir == 'itiwomenlaxmangarh') {
return '552';
} else if (base == 'dot' && dir == 'itiaburoad') {
return '545';
} else if (base == 'dot' && dir == 'itipindwara') {
return '543';
} else if (base == 'dot' && dir == 'itireodar') {
return '541';
} else if (base == 'dot' && dir == 'itishivganj') {
return '539';
} else if (base == 'dot' && dir == 'itisirohi') {
return '538';
} else if (base == 'dot' && dir == 'ititodaraisingh') {
return '536';
} else if (base == 'dot' && dir == 'ititonk') {
return '534';
} else if (base == 'dot' && dir == 'iticett') {
return '532';
} else if (base == 'dot' && dir == 'itibargaon') {
return '528';
} else if (base == 'dot' && dir == 'itijailudaipur') {
return '526';
} else if (base == 'dot' && dir == 'itikherwara') {
return '522';
} else if (base == 'dot' && dir == 'itikotara') {
return '520';
} else if (base == 'dot' && dir == 'itikurabar') {
return '619';
} else if (base == 'dot' && dir == 'itilasadiya') {
return '615';
} else if (base == 'dot' && dir == 'itimawali') {
return '518';
} else if (base == 'dot' && dir == 'itipcudaipur') {
return '517';
} else if (base == 'dot' && dir == 'itirishabhdev') {
return '620';
} else if (base == 'dot' && dir == 'itisalumber') {
return '513';
} else if (base == 'dot' && dir == 'itiudaipur') {
return '511';
} else if (base == 'dot' && dir == 'itiwomenudaipur') {
return '509';
} else if (base == 'dot' && dir == 'itibhilwara') {
return '843';
} else if (base == 'dot' && dir == 'itiwomenmandor') {
return '1064';
} else if (base == 'dot' && dir == 'itibapini') {
return '1065';
} else if (base == 'dot' && dir == 'itidechu') {
return '1066';
} else if (base == 'dot' && dir == 'itihameergarh') {
return '1031';
} else if (base == 'dot' && dir == 'itiwomentonk') {
return '1035';
} else if (base == 'dot' && dir == 'itihindoli') {
return '1070';
} else if (base == 'dot' && dir == 'itibhim') {
return '1078';
} else if (base == 'dot' && dir == 'itikarera') {
return '1030';
} else if (base == 'dot' && dir == 'itikumbhalgarh') {
return '1079';
} else if (base == 'dot' && dir == 'itinadbai') {
return '1037';
} else if (base == 'dot' && dir == 'itisabla') {
return '1076';
} else if (base == 'dot' && dir == 'itiagolai') {
return '1069';
} else if (base == 'dot' && dir == 'itiahore') {
return '1063';
} else if (base == 'dot' && dir == 'itiamer') {
return '813';
} else if (base == 'dot' && dir == 'itiarain') {
return '1029';
} else if (base == 'dot' && dir == 'itibagru') {
return '1052';
} else if (base == 'dot' && dir == 'itibhadra') {
return '1044';
} else if (base == 'dot' && dir == 'itibhaniyana') {
return '1061';
} else if (base == 'dot' && dir == 'itibonli') {
return '1042';
} else if (base == 'dot' && dir == 'itichhotisadri') {
return '1077';
} else if (base == 'dot' && dir == 'itichhotisarwan') {
return '652';
} else if (base == 'dot' && dir == 'itichirawa') {
return '770';
} else if (base == 'dot' && dir == 'itichomu') {
return '812';
} else if (base == 'dot' && dir == 'itideogarh') {
return '1080';
} else if (base == 'dot' && dir == 'itidhanau') {
return '1057';
} else if (base == 'dot' && dir == 'itidhorimanna') {
return '778';
} else if (base == 'dot' && dir == 'itidoongla') {
return '858';
} else if (base == 'dot' && dir == 'itifalna') {
return '640';
} else if (base == 'dot' && dir == 'itifatehgarh') {
return '1062';
} else if (base == 'dot' && dir == 'itigadraroad') {
return '1059';
} else if (base == 'dot' && dir == 'itigangapurbhilwara') {
return '845';
} else if (base == 'dot' && dir == 'itigangratlai') {
return '1073';
} else if (base == 'dot' && dir == 'itighatol') {
return '656';
} else if (base == 'dot' && dir == 'itigira') {
return '1055';
} else if (base == 'dot' && dir == 'itigogunda') {
return '1087';
} else if (base == 'dot' && dir == 'itijailjaipur') {
return '1051';
} else if (base == 'dot' && dir == 'itijailkota') {
return '1072';
} else if (base == 'dot' && dir == 'itijhalara') {
return '1083';
} else if (base == 'dot' && dir == 'itijhunjhunu') {
return '768';
} else if (base == 'dot' && dir == 'itikalyanpur') {
return '1056';
} else if (base == 'dot' && dir == 'itikaman') {
return '800';
} else if (base == 'dot' && dir == 'itikanor') {
return '1082';
} else if (base == 'dot' && dir == 'itikathoomar') {
return '1046';
} else if (base == 'dot' && dir == 'iitikelwara') {
return '752';
} else if (base == 'dot' && dir == 'itikhamnor') {
return '1081';
} else if (base == 'dot' && dir == 'iitikhonagorian') {
return '809';
} else if (base == 'dot' && dir == 'itikotkasim') {
return '1048';
} else if (base == 'dot' && dir == 'itikurabad') {
return '619';
} else if (base == 'dot' && dir == 'itimahwa') {
return '1050';
} else if (base == 'dot' && dir == 'itimakranashahar') {
return '1034';
} else if (base == 'dot' && dir == 'itimandawa') {
return '1053';
} else if (base == 'dot' && dir == 'itimandhan') {
return '1049';
} else if (base == 'dot' && dir == 'itimertacity') {
return '662';
} else if (base == 'dot' && dir == 'itimolasar') {
return '1033';
} else if (base == 'dot' && dir == 'itinagaur') {
return '658';
} else if (base == 'dot' && dir == 'itinimbahera') {
return '1075';
} else if (base == 'dot' && dir == 'itiniwai') {
return '1036';
} else if (base == 'dot' && dir == 'itiparbatsar') {
return '1032';
} else if (base == 'dot' && dir == 'itipatodi') {
return '1058';
} else if (base == 'dot' && dir == 'itiphalasiya') {
return '1084';
} else if (base == 'dot' && dir == 'itipidawa') {
return '773';
} else if (base == 'dot' && dir == 'itirailmagra') {
return '1089';
} else if (base == 'dot' && dir == 'itirashmi') {
return '853';
} else if (base == 'dot' && dir == 'itirawatbhata') {
return '851';
} else if (base == 'dot' && dir == 'itisadulshahar') {
return '1045';
} else if (base == 'dot' && dir == 'itisaimari') {
return '1085';
} else if (base == 'dot' && dir == 'itisamdari') {
return '1054';
} else if (base == 'dot' && dir == 'itisarmathura') {
return '1040';
} else if (base == 'dot' && dir == 'itisarada') {
return '1088';
} else if (base == 'dot' && dir == 'itisardarshahar') {
return '1043';
} else if (base == 'dot' && dir == 'itisayra') {
return '1086';
} else if (base == 'dot' && dir == 'itisekhala') {
return '';
} else if (base == 'dot' && dir == 'itiserwa') {
return '1060';
} else if (base == 'dot' && dir == 'itishivganj') {
return '539';
} else if (base == 'dot' && dir == 'itisirohi') {
return '538';
} else if (base == 'dot' && dir == 'iititibi') {
return '814';
} else if (base == 'dot' && dir == 'ititiwari') {
return '1068';
} else if (base == 'dot' && dir == 'ititodabhim') {
return '1041';
} else if (base == 'dot' && dir == 'itiuchchain') {
return '1039';
} else if (base == 'dot' && dir == 'itiweir') {
return '1038';
} else if (base == 'dot' && dir == 'itimanoharthana') {
return '1071';
} else if (base == 'dot' && dir == 'itisawa') {
return '1074';
} else if (base == 'dot' && dir == 'iitiwomenjodhpur') {
return '712';
} else if (base == 'dot' && dir == 'itibehror') {
return '1047';
} //#endregion
//#region lsg
else if (base == 'lsg' && dir == 'lsg') {
return '215';
} // Nagar Nigam
else if (base == 'lsg' && dir == 'mcajmer') {
return '199';
} else if (base == 'lsg' && dir == 'mcbharatpur') {
return '200';
} else if (base == 'lsg' && dir == 'mcbikaner') {
return '201';
} // else if (base == 'lsg' && dir == 'mcjaipurgreater') { return '391'; }
else if (base == 'lsg' && dir == 'mcjaipurheritage') {
return '202';
} else if (base == 'lsg' && dir == 'mcjn') {
return '1090';
} // else if (base == 'lsg' && dir == 'mcjs') { return '203'; }
else if (base == 'lsg' && dir == 'nnjodhpur') {
return '203';
} else if (base == 'lsg' && dir == 'mckotanorth') {
return '1091';
} else if (base == 'lsg' && dir == 'mckota') {
return '204';
} else if (base == 'lsg' && dir == 'mcudaipur') {
return '205';
} //Nagar Palika
else if (base == 'lsg' && dir == 'ulbaasind') {
return '558';
} else if (base == 'lsg' && dir == 'ulbaamet') {
return '628';
} else if (base == 'lsg' && dir == 'ulbaburoad') {
return '673';
} else if (base == 'lsg' && dir == 'ulbajitgarh') {
return '1133';
} else if (base == 'lsg' && dir == 'ulbaklera') {
return '521';
} else if (base == 'lsg' && dir == 'ulbanoopgarh') {
return '612';
} else if (base == 'lsg' && dir == 'ulbanta') {
return '605';
} else if (base == 'lsg' && dir == 'ulbatru') {
return '1142';
} else if (base == 'lsg' && dir == 'ulbbadisadri') {
return '641';
} else if (base == 'lsg' && dir == 'ulbbaggar') {
return '762';
} else if (base == 'lsg' && dir == 'ulbbagru') {
return '705';
} else if (base == 'lsg' && dir == 'ulbbahadurpur') {
return '1121';
} else if (base == 'lsg' && dir == 'ulbbalesarsatta') {
return '1136';
} else if (base == 'lsg' && dir == 'ulbbali') {
return '684';
} else if (base == 'lsg' && dir == 'ulbbamanwas') {
return '1106';
} else if (base == 'lsg' && dir == 'ulbbandikui') {
return '758';
} else if (base == 'lsg' && dir == 'ulbbansur') {
return '1114';
} else if (base == 'lsg' && dir == 'ulbbardod') {
return '1117';
} else if (base == 'lsg' && dir == 'ulbbardomev') {
return '1120';
} else if (base == 'lsg' && dir == 'ulbbari') {
return '710';
} else if (base == 'lsg' && dir == 'ulbbaseri') {
return '1104';
} else if (base == 'lsg' && dir == 'ulbbasni') {
return '1098';
} else if (base == 'lsg' && dir == 'ulbbassi') {
return '1131';
} else if (base == 'lsg' && dir == 'ulbbayana') {
return '731';
} else if (base == 'lsg' && dir == 'ulbbegun') {
return '635';
} else if (base == 'lsg' && dir == 'ulbbehror') {
return '751';
} else if (base == 'lsg' && dir == 'ulbbhadra') {
return '659';
} else if (base == 'lsg' && dir == 'ulbbhawanimandi') {
return '525';
} else if (base == 'lsg' && dir == 'ulbbhinder') {
return '654';
} else if (base == 'lsg' && dir == 'ulbbhinmal') {
return '694';
} else if (base == 'lsg' && dir == 'ulbbhopalgarh') {
return '1139';
} else if (base == 'lsg' && dir == 'ulbbhusawar') {
return '713';
} else if (base == 'lsg' && dir == 'ulbbidasar') {
return '595';
} else if (base == 'lsg' && dir == 'ulbbilara') {
return '697';
} else if (base == 'lsg' && dir == 'ulbbissau') {
return '764';
} else if (base == 'lsg' && dir == 'ulbbolli') {
return '1100';
} else if (base == 'lsg' && dir == 'ulbborawar') {
return '1097';
} else if (base == 'lsg' && dir == 'ulbchaksu') {
return '671';
} else if (base == 'lsg' && dir == 'ulbchhabra') {
return '599';
} else if (base == 'lsg' && dir == 'ulbchhapar') {
return '593';
} else if (base == 'lsg' && dir == 'ulbchirawa') {
return '766';
} else if (base == 'lsg' && dir == 'ulbchomu') {
return '667';
} else if (base == 'lsg' && dir == 'ulbchotisadri') {
return '622';
} else if (base == 'lsg' && dir == 'ulbdanta') {
return '1132';
} else if (base == 'lsg' && dir == 'ulbdeeg') {
return '730';
} else if (base == 'lsg' && dir == 'ulbdegana') {
return '572';
} else if (base == 'lsg' && dir == 'ulbdeogarh') {
return '624';
} else if (base == 'lsg' && dir == 'ulbdeoli') {
return '574';
} else if (base == 'lsg' && dir == 'ulbdeshnok') {
return '587';
} else if (base == 'lsg' && dir == 'ulbdhariyawad') {
return '1145';
} else if (base == 'lsg' && dir == 'ulbdidwana') {
return '562';
} else if (base == 'lsg' && dir == 'ulbfatehnagar') {
return '660';
} else if (base == 'lsg' && dir == 'ulbfatehpur') {
return '743';
} else if (base == 'lsg' && dir == 'ulbgajsinghpur') {
return '614';
} else if (base == 'lsg' && dir == 'ulbgangapur') {
return '551';
} else if (base == 'lsg' && dir == 'ulbgovindgarh') {
return '1115';
} else if (base == 'lsg' && dir == 'ulbgudhagodji') {
return '1124';
} else if (base == 'lsg' && dir == 'ulbgulabpura') {
return '550';
} else if (base == 'lsg' && dir == 'ulbhammirgadh') {
return '1095';
} else if (base == 'lsg' && dir == 'ulbindragarh') {
return '530';
} else if (base == 'lsg' && dir == 'ulbitawa') {
return '608';
} else if (base == 'lsg' && dir == 'ulbjahazpur') {
return '553';
} else if (base == 'lsg' && dir == 'ulbjaitaran') {
return '685';
} else if (base == 'lsg' && dir == 'ulbjawal') {
return '1140';
} else if (base == 'lsg' && dir == 'ulbjayal') {
return '1096';
} else if (base == 'lsg' && dir == 'ulbjhalarapatan') {
return '524';
} else if (base == 'lsg' && dir == 'ulbjobner') {
return '678';
} else if (base == 'lsg' && dir == 'ulbkaithoon') {
return '617';
} else if (base == 'lsg' && dir == 'ulbkaman') {
return '724';
} else if (base == 'lsg' && dir == 'ulbkanore') {
return '646';
} else if (base == 'lsg' && dir == 'ulbkapasan') {
return '637';
} else if (base == 'lsg' && dir == 'ulbkapren') {
return '531';
} else if (base == 'lsg' && dir == 'ulbkekri') {
return '540';
} else if (base == 'lsg' && dir == 'ulbkesarisinghpur') {
return '636';
} else if (base == 'lsg' && dir == 'ulbkeshoraipatan') {
return '592';
} else if (base == 'lsg' && dir == 'ulbkhajuwala') {
return '1107';
} else if (base == 'lsg' && dir == 'ulbkhandela') {
return '738';
} else if (base == 'lsg' && dir == 'ulbkhatushyamji') {
return '1130';
} else if (base == 'lsg' && dir == 'ulbkherli') {
return '719';
} else if (base == 'lsg' && dir == 'ulbkherthal') {
return '714';
} else if (base == 'lsg' && dir == 'ulbkhetri') {
return '757';
} else if (base == 'lsg' && dir == 'ulbkhudalafalnast') {
return '679';
} else if (base == 'lsg' && dir == 'ulbkishangarhrenwal') {
return '704';
} else if (base == 'lsg' && dir == 'ulbkishangarhbas') {
return '755';
} else if (base == 'lsg' && dir == 'ulbkothputali') {
return '675';
} else if (base == 'lsg' && dir == 'ulbkotkasim') {
return '1116';
} else if (base == 'lsg' && dir == 'ulbkuchamancity') {
return '563';
} else if (base == 'lsg' && dir == 'ulbkuchera') {
return '565';
} else if (base == 'lsg' && dir == 'ulbkumher') {
return '717';
} else if (base == 'lsg' && dir == 'ulbkushalgarh') {
return '1143';
} else if (base == 'lsg' && dir == 'ulbladnun') {
return '560';
} else if (base == 'lsg' && dir == 'ulblakheri') {
return '594';
} else if (base == 'lsg' && dir == 'ulblalgarhjataan') {
return '1109';
} else if (base == 'lsg' && dir == 'ulblalsot') {
return '761';
} else if (base == 'lsg' && dir == 'ulblaxmangarh') {
return '742';
} else if (base == 'lsg' && dir == 'ulblaxmangarhalwar') {
return '1112';
} else if (base == 'lsg' && dir == 'ulblosal') {
return '733';
} else if (base == 'lsg' && dir == 'ulbmahwa') {
return '1123';
} else if (base == 'lsg' && dir == 'ulbmalpura') {
return '578';
} else if (base == 'lsg' && dir == 'ulbmandalgarh') {
return '555';
} else if (base == 'lsg' && dir == 'ulbmandawa') {
return '754';
} else if (base == 'lsg' && dir == 'ulbmandawar') {
return '1125';
} else if (base == 'lsg' && dir == 'ulbmandawari') {
return '1126';
} else if (base == 'lsg' && dir == 'ulbmangrol') {
return '597';
} else if (base == 'lsg' && dir == 'ulbmanoharpura') {
return '1129';
} else if (base == 'lsg' && dir == 'ulbmarwarjunction') {
return '1138';
} else if (base == 'lsg' && dir == 'ulbmertacity') {
return '561';
} else if (base == 'lsg' && dir == 'ulbmountabu') {
return '510';
} else if (base == 'lsg' && dir == 'ulbmukundgarh') {
return '750';
} else if (base == 'lsg' && dir == 'ulbmundwa') {
return '569';
} else if (base == 'lsg' && dir == 'ulbnadbai') {
return '721';
} else if (base == 'lsg' && dir == 'ulbnagar') {
return '711';
} else if (base == 'lsg' && dir == 'ulbnainwa') {
return '533';
} else if (base == 'lsg' && dir == 'ulbnaraina') {
return '1128';
} else if (base == 'lsg' && dir == 'ulbnasirabad') {
return '1094';
} else if (base == 'lsg' && dir == 'ulbnathdwara') {
return '626';
} else if (base == 'lsg' && dir == 'ulbnawacity') {
return '568';
} else if (base == 'lsg' && dir == 'ulbnawalgarh') {
return '769';
} else if (base == 'lsg' && dir == 'ulbneemkathana') {
return '736';
} else if (base == 'lsg' && dir == 'ulbneemrana') {
return '1119';
} else if (base == 'lsg' && dir == 'ulbnimbahera') {
return '644';
} else if (base == 'lsg' && dir == 'ulbniwai') {
return '577';
} else if (base == 'lsg' && dir == 'ulbnohar') {
return '651';
} else if (base == 'lsg' && dir == 'ulbnokha') {
return '584';
} else if (base == 'lsg' && dir == 'ulbpadampur') {
return '616';
} else if (base == 'lsg' && dir == 'ulbpaotapragpura') {
return '1127';
} else if (base == 'lsg' && dir == 'ulbparbatsar') {
return '564';
} else if (base == 'lsg' && dir == 'ulbpartapurgarhi') {
return '1144';
} else if (base == 'lsg' && dir == 'ulbphalodi') {
return '703';
} else if (base == 'lsg' && dir == 'ulbphulera') {
return '696';
} else if (base == 'lsg' && dir == 'ulbpilani') {
return '747';
} else if (base == 'lsg' && dir == 'ulbpilibanga') {
return '661';
} else if (base == 'lsg' && dir == 'ulbpindwara') {
return '665';
} else if (base == 'lsg' && dir == 'ulbpiparcity') {
return '700';
} else if (base == 'lsg' && dir == 'ulbpirawa') {
return '523';
} else if (base == 'lsg' && dir == 'ulbpokhran') {
return '695';
} else if (base == 'lsg' && dir == 'ulbpushkar') {
return '542';
} else if (base == 'lsg' && dir == 'ulbraisinghnagar') {
return '611';
} else if (base == 'lsg' && dir == 'ulbrajagarh') {
return '722';
} else if (base == 'lsg' && dir == 'ulbrajakheda') {
return '709';
} else if (base == 'lsg' && dir == 'ulbrajaldesar') {
return '596';
} else if (base == 'lsg' && dir == 'ulbrajgarhalwar') {
return '1111';
} else if (base == 'lsg' && dir == 'ulbrajgarhchuru') {
return '591';
} else if (base == 'lsg' && dir == 'ulbramganjmandi') {
return '618';
} else if (base == 'lsg' && dir == 'ulbramgarhalwar') {
return '1113';
} else if (base == 'lsg' && dir == 'ulbramgarhshekhawati') {
return '741';
} else if (base == 'lsg' && dir == 'ulbranikhurd') {
return '674';
} else if (base == 'lsg' && dir == 'ulbraniwada') {
return '1135';
} else if (base == 'lsg' && dir == 'ulbratangarh') {
return '588';
} else if (base == 'lsg' && dir == 'ulbratannagar') {
return '604';
} else if (base == 'lsg' && dir == 'ulbrawatbhata') {
return '632';
} else if (base == 'lsg' && dir == 'ulbrawatsar') {
return '664';
} else if (base == 'lsg' && dir == 'ulbringus') {
return '734';
} else if (base == 'lsg' && dir == 'ulbrishabhdeo') {
return '1146';
} else if (base == 'lsg' && dir == 'ulbroopwas') {
return '507';
} else if (base == 'lsg' && dir == 'ulbsadri') {
return '682';
} else if (base == 'lsg' && dir == 'ulbsadulshahar') {
return '638';
} else if (base == 'lsg' && dir == 'ulbsagwara') {
return '630';
} else if (base == 'lsg' && dir == 'ulbsalumber') {
return '657';
} else if (base == 'lsg' && dir == 'ulbsambhar') {
return '670';
} else if (base == 'lsg' && dir == 'ulbsanchore') {
return '692';
} else if (base == 'lsg' && dir == 'ulbsangariya') {
return '655';
} else if (base == 'lsg' && dir == 'ulbsangod') {
return '613';
} else if (base == 'lsg' && dir == 'ulbsapotra') {
return '1105';
} else if (base == 'lsg' && dir == 'ulbsardarshahar') {
return '590';
} else if (base == 'lsg' && dir == 'ulbsarwar') {
return '544';
} else if (base == 'lsg' && dir == 'ulbsemari') {
return '1147';
} else if (base == 'lsg' && dir == 'ulbbhilwarashahpura') {
return '548';
} else if (base == 'lsg' && dir == 'ulbshahpura') {
return '701';
} else if (base == 'lsg' && dir == 'ulbsheoganj') {
return '668';
} else if (base == 'lsg' && dir == 'ulbshridungargarh') {
return '585';
} else if (base == 'lsg' && dir == 'ulbsrikarnpur') {
return '642';
} else if (base == 'lsg' && dir == 'ulbshrimadhopur') {
return '739';
} else if (base == 'lsg' && dir == 'ulbshrivijaynagar') {
return '648';
} else if (base == 'lsg' && dir == 'ulbsikri') {
return '1101';
} else if (base == 'lsg' && dir == 'ulbsirmathura') {
return '1103';
} else if (base == 'lsg' && dir == 'ulbsiwana') {
return '1134';
} else if (base == 'lsg' && dir == 'ulbsojatcity') {
return '688';
} else if (base == 'lsg' && dir == 'ulbsultanpur') {
return '1141';
} else if (base == 'lsg' && dir == 'ulbsumerpur') {
return '690';
} else if (base == 'lsg' && dir == 'ulbsurajgarh') {
return '749';
} else if (base == 'lsg' && dir == 'ulbsuratgarh') {
return '645';
} else if (base == 'lsg' && dir == 'ulbtakhatgarh') {
return '683';
} else if (base == 'lsg' && dir == 'ulbtapokada') {
return '1118';
} else if (base == 'lsg' && dir == 'ulbtaranagar') {
return '606';
} else if (base == 'lsg' && dir == 'ulbthanagaji') {
return '1122';
} else if (base == 'lsg' && dir == 'ulbtibbi') {
return '1108';
} else if (base == 'lsg' && dir == 'ulbtijara') {
return '725';
} else if (base == 'lsg' && dir == 'ulbtodabhim') {
return '707';
} else if (base == 'lsg' && dir == 'ulbtodaraisingh') {
return '580';
} else if (base == 'lsg' && dir == 'ulbujjchain') {
return '1102';
} else if (base == 'lsg' && dir == 'ulbudaipurvati') {
return '745';
} else if (base == 'lsg' && dir == 'ulbuniara') {
return '582';
} else if (base == 'lsg' && dir == 'ulbvidhyavihar') {
return '744';
} else if (base == 'lsg' && dir == 'ulbvijaynagar') {
return '547';
} else if (base == 'lsg' && dir == 'ulbviratnagar') {
return '698';
} else if (base == 'lsg' && dir == 'ulbweir') {
return '718';
} // Nagar Parishad
else if (base == 'lsg' && dir == 'ulbalwar') {
return '916';
} else if (base == 'lsg' && dir == 'ulbbalotra') {
return '936';
} else if (base == 'lsg' && dir == 'ulbbanswara') {
return '928';
} else if (base == 'lsg' && dir == 'ulbbaran') {
return '932';
} else if (base == 'lsg' && dir == 'ulbbarmer') {
return '925';
} else if (base == 'lsg' && dir == 'ulbbeawar') {
return '912';
} else if (base == 'lsg' && dir == 'ulbbhilwara') {
return '914';
} else if (base == 'lsg' && dir == 'ulbbhiwadi') {
return '935';
} else if (base == 'lsg' && dir == 'ulbbundi') {
return '937';
} else if (base == 'lsg' && dir == 'ulbchittorgarh') {
return '929';
} else if (base == 'lsg' && dir == 'ulbchuru') {
return '915';
} else if (base == 'lsg' && dir == 'ulbdausa') {
return '917';
} else if (base == 'lsg' && dir == 'ulbdholpur') {
return '920';
} else if (base == 'lsg' && dir == 'ulbdungarpur') {
return '1093';
} else if (base == 'lsg' && dir == 'ulbgangapurcity') {
return '924';
} else if (base == 'lsg' && dir == 'ulbhanumangarh') {
return '939';
} else if (base == 'lsg' && dir == 'ulbhindauncity') {
return '922';
} else if (base == 'lsg' && dir == 'ulbjaisalmer') {
return '940';
} else if (base == 'lsg' && dir == 'ulbjalore') {
return '1092';
} else if (base == 'lsg' && dir == 'ulbjhalawar') {
return '933';
} else if (base == 'lsg' && dir == 'ulbjhunjhunu') {
return '918';
} else if (base == 'lsg' && dir == 'ulbkarauli') {
return '921';
} else if (base == 'lsg' && dir == 'ulbkishangarh') {
return '913';
} else if (base == 'lsg' && dir == 'ulbmakrana') {
return '942';
} else if (base == 'lsg' && dir == 'ulbnagaur') {
return '941';
} else if (base == 'lsg' && dir == 'ulbpali') {
return '926';
} else if (base == 'lsg' && dir == 'ulbpratapgarh') {
return '931';
} else if (base == 'lsg' && dir == 'ulbrajsamand') {
return '930';
} else if (base == 'lsg' && dir == 'ulbsawaimadhopur') {
return '923';
} else if (base == 'lsg' && dir == 'ulbsikar') {
return '919';
} else if (base == 'lsg' && dir == 'ulbsirohi') {
return '927';
} else if (base == 'lsg' && dir == 'ulbsriganganagar') {
return '943';
} else if (base == 'lsg' && dir == 'ulbsujangarh') {
return '938';
} else if (base == 'lsg' && dir == 'ulbtonk') {
return '934';
} //UIT Rajasthan
else if (base == 'lsg' && dir == 'uitabu') {
return '282';
} else if (base == 'lsg' && dir == 'uitalwar') {
return '364';
} else if (base == 'lsg' && dir == 'uitbarmer') {
return '365';
} else if (base == 'lsg' && dir == 'uitbharatpur') {
return '245';
} else if (base == 'lsg' && dir == 'uitbhilwara') {
return '281';
} else if (base == 'lsg' && dir == 'uitbikaner') {
return '367';
} else if (base == 'lsg' && dir == 'bda') {
return '367';
} else if (base == 'lsg' && dir == 'uitchittorgarh') {
return '368';
} else if (base == 'lsg' && dir == 'uitjaisalmer') {
return '370';
} else if (base == 'lsg' && dir == 'uitkota') {
return '280';
} else if (base == 'lsg' && dir == 'kda') {
return '280';
} else if (base == 'lsg' && dir == 'uitpali') {
return '369';
} else if (base == 'lsg' && dir == 'uitsawaimadhopur') {
return '371';
} else if (base == 'lsg' && dir == 'uitsikar') {
return '228';
} else if (base == 'lsg' && dir == 'uitsriganganagar') {
return '279';
} else if (base == 'lsg' && dir == 'uitudaipur') {
return '372';
} else if (base == 'lsg' && dir == 'rudsico') {
return '233';
} else if (base == 'lsg' && dir == 'uitbalotra') {
return '1883';
} else if (base == 'lsg' && dir == 'uitdausabandikui') {
return '1881';
} //#endregion
//#region industries
else if (base == 'industries' && dir == 'bpe') {
return '253';
} else if (base == 'industries' && dir == 'icom') {
return '162';
} else if (base == 'industries' && dir == 'bip') {
return '176';
} else if (base == 'industries' && dir == 'rsicl') {
return '169';
} else if (base == 'industries' && dir == 'rsgl') {
return '998';
} else if (base == 'industries' && dir == 'icd') {
return '84';
} else if (base == 'industries' && dir == 'bida') {
return '398';
} else if (base == 'industries' && dir == 'dmic') {
return '170';
} else if (base == 'industries' && dir == 'msme') {
return '1';
} else if (base == 'industries' && dir == 'bunkarsangh') {
return '159';
} //else if (base == 'industries' && dir == 'rfc') { return '124'; }
else if (base == 'industries' && dir == 'rajasthanfoundation') {
return '274';
} else if (base == 'industries' && dir == 'rshdc') {
return '181';
} else if (base == 'industries' && dir == 'kgub') {
return '96';
} else if (base == 'industries' && dir == 'riico') {
return '125';
} else if (base == 'industries' && dir == 'ruda') {
return '164';
} else if (base == 'industries' && dir == 'rajsico') {
return '169';
} //#endregion
//#region sports
else if (base == 'sports' && dir == 'sya') {
return '145';
} //#endregion
//#region energy
else if (base == 'energy' && dir == 'energy') {
return '62';
} else if (base == 'energy' && dir == 'avvnl') {
return '9';
} else if (base == 'energy' && dir == 'eid') {
return '258';
} else if (base == 'energy' && dir == 'rrvpn') {
return '211';
} else if (base == 'energy' && dir == 'rrvun') {
return '183';
} else if (base == 'energy' && dir == 'jdvvnl') {
return '185';
} else if (base == 'energy' && dir == 'jvvnl') {
return '188';
} else if (base == 'energy' && dir == 'rerc') {
return '330';
} else if (base == 'energy' && dir == 'rrecl') {
return '197';
} else if (base == 'energy' && dir == 'ruvks') {
return '287';
} //#endregion
//#region health
else if (base == 'health' && dir == 'ayurved') {
return '15';
} else if (base == 'health' && dir == 'ayush') {
return '249';
} else if (base == 'health' && dir == 'hcv') {
return '304';
} else if (base == 'health' && dir == 'rmb') {
return '385';
} else if (base == 'health' && dir == 'mmmgac') {
return '226';
} else if (base == 'health' && dir == 'rajswa') {
return '101';
} else if (base == 'health' && dir == 'msu') {
return '318';
} else if (base == 'health' && dir == 'nam') {
return '320';
} else if (base == 'health' && dir == 'nhm') {
return '236';
} else if (base == 'health' && dir == 'nioa') {
return '321';
} else if (base == 'health' && dir == 'nrhm') {
return '106';
} else if (base == 'health' && dir == 'rdpl') {
return '329';
} else if (base == 'health' && dir == 'rhcb') {
return '333';
} else if (base == 'health' && dir == 'rmc') {
return '337';
} else if (base == 'health' && dir == 'rmscl') {
return '277';
} else if (base == 'health' && dir == 'rsacs') {
return '289';
} else if (base == 'health' && dir == 'rsndb') {
return '973';
} else if (base == 'health' && dir == 'siohfw') {
return '361';
} else if (base == 'health' && dir == 'unani') {
return '222';
} else if (base == 'health' && dir == 'rsmpb') {
return '1863';
} //#endregion
//#region education
else if (base == 'education' && dir == 'diets') {
return '1153';
} else if (base == 'education' && dir == 'elementary') {
return '189';
} else if (base == 'education' && dir == 'iaseajmer') {
return '1264';
} else if (base == 'education' && dir == 'iasebikaner') {
return '1263';
} else if (base == 'education' && dir == 'languagelibrary') {
return '217';
} else if (base == 'education' && dir == 'literacyandcontinuingeducation') {
return '312';
} else if (base == 'education' && dir == 'mdm') {
return '103';
} else if (base == 'education' && dir == 'rcse') {
return '375';
} else if (base == 'education' && dir == 'rskb') {
return '499';
} else if (base == 'education' && dir == 'rstb') {
return '404';
} else if (base == 'education' && dir == 'sanskrit') {
return '129';
} else if (base == 'education' && dir == 'secondary') {
return '146';
} else if (base == 'education' && dir == 'ssiert') {
return '1859';
} //#endregion
//#region urban
else if (base == 'urban' && dir == 'udh') {
return '173';
} else if (base == 'urban' && dir == 'townplanning') {
return '384';
} //#endregion
//#region artandculture
else if (base == 'artandculture' && dir == 'artandculture') {
return '13';
} else if (base == 'artandculture' && dir == 'makaapritonk') {
return '269';
} else if (base == 'artandculture' && dir == 'jkk') {
return '309';
} else if (base == 'artandculture' && dir == 'rori') {
return '340';
} else if (base == 'artandculture' && dir == 'adma') {
return '1154';
} else if (base == 'artandculture' && dir == 'rbssabikaner') {
return '1155';
} else if (base == 'artandculture' && dir == 'rha') {
return '1157';
} //initially it was rhppa
else if (base == 'artandculture' && dir == 'blkm') {
return '1158';
} else if (base == 'artandculture' && dir == 'rsaudaipur') {
return '1159';
} else if (base == 'artandculture' && dir == 'rsnajodhpur') {
return '1160';
} else if (base == 'artandculture' && dir == 'rsindhiacademy') {
return '1161';
} else if (base == 'artandculture' && dir == 'rua') {
return '1162';
} else if (base == 'artandculture' && dir == 'rlka') {
return '1163';
} else if (base == 'artandculture' && dir == 'ravindramanchjaipur') {
return '1164';
} else if (base == 'artandculture' && dir == 'jpkathakkendra') {
return '1165';
} else if (base == 'artandculture' && dir == 'rsanskritacademy') {
return '1166';
} else if (base == 'artandculture' && dir == 'rbba') {
return '1167';
} //#endregion
// #region for ds env
else if (base == 'demooo' && dir == 'avvnl') {
return '9';
} //#endregion
}
return '';
}
}, {
key: "GetOfficesFor",
value: function GetOfficesFor(departmentCode, districtCode) {
var params = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_3__[
/* Dictionary */
"a"]();
params.Add("deptCode", departmentCode);
params.Add("distCode", districtCode);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_4__[
/* AppSetting */
"a"].GetOfficesByDepartmentAndDistrictUrl, params);
}
}, {
key: "isDateExpire",
value: function isDateExpire(date) {
if (!date) return false;
var curDate = new Date();
date = new Date(date);
curDate.setHours(0, 0, 0, 0);
date.setHours(0, 0, 0, 0);
return date < curDate;
}
}, {
key: "groupBy",
value: function groupBy(list, keyGetter) {
var map = new Map();
list.forEach(function (item) {
var key = keyGetter(item);
var collection = map.get(key);
if (!collection) {
map.set(key, [item]);
} else {
collection.push(item);
}
});
return map;
}
}, {
key: "getTemplateName",
value: function getTemplateName() {
var _tempName = localStorage.getItem("TemplateClass");
if (_tempName) {
return _tempName;
}
return '';
}
}, {
key: "GetGoogleMapUrl",
value: function GetGoogleMapUrl(lat, _long) {
return _Enum_url_enum__WEBPACK_IMPORTED_MODULE_2__[
/* UrlEnum */
"a"].GoogleMapUrl.replace('{lattitude}', lat).replace('{longitude}', _long);
}
}, {
key: "GetDptSectionBydptCode",
value: function GetDptSectionBydptCode(deptCode) {
var params = new _Model_dictionary__WEBPACK_IMPORTED_MODULE_3__[
/* Dictionary */
"a"]();
params.Add("deptCode", deptCode);
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_4__[
/* AppSetting */
"a"].GetDptSectionBydptCode, params);
} // GetRedirectToScreen(redirectTo: string) {
// let _redirectTo = 'list';
// if (redirectTo) {
// _redirectTo = redirectTo.split('-').shift();
// }
// return _redirectTo || 'list';
// }
}, {
key: "alertMsg",
value: function alertMsg(titleTxt, msgTxt) {
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "info";
return new Promise(function (resolve) {
sweetalert2__WEBPACK_IMPORTED_MODULE_5___default.a.fire({
icon: type,
title: titleTxt,
text: msgTxt,
timer: 5000,
customClass: {
container: 'my-swal'
}
}).then(function () {
return resolve();
});
});
}
}, {
key: "printHTMLContent",
value: function printHTMLContent(id) {
var printHeader = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
var divToPrint = document.getElementById(id).innerHTML;
sessionStorage.setItem("PrintContentPageTitle", printHeader);
sessionStorage.setItem("PrintContent", divToPrint);
var url = window.location.href.replace(this.router.url, '/print');
window.open(url, '_blank');
}
}, {
key: "IsCodeOfConduct",
value: function IsCodeOfConduct() {
var _a;
return _a = JSON.parse(localStorage.getItem('IsCodeOfConduct')), _a !== null && _a !== void 0 ? _a : true;
}
}, {
key: "WebSiteView",
value: function WebSiteView() {
var width = window.innerWidth;
if (width <= 768) {
return 'Mobile';
} else {
return 'Desktop';
}
}
}, {
key: "onImageError",
value: function onImageError(event, fallbackSrc) {
event.target.src = fallbackSrc;
}
}]);
}();
CommonService.ɵfac = function CommonService_Factory(t) {
return new (t || CommonService)(_angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵinject */
"ec"](_base_service__WEBPACK_IMPORTED_MODULE_7__[
/* BaseService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵinject */
"ec"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵinject */
"ec"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__[
/* Title */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵinject */
"ec"](_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* Location */
"i"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵinject */
"ec"](_angular_router__WEBPACK_IMPORTED_MODULE_10__[
/* Router */
"b"]));
};
CommonService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_6__[
/* ɵɵdefineInjectable */
"Rb"]({
token: CommonService,
factory: CommonService.ɵfac,
providedIn: "root"
});
return CommonService;
}();
/***/
},
/***/
"Lexf":
/***/
function Lexf(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export OrderViewModel */
/* unused harmony export OrderAttachmentViewModel */
/* unused harmony export OrderTypeGroupListViewModel */
/* unused harmony export OrderPublicPortal */
/* unused harmony export AttachmentList */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return OrderEntryfrontModel;
});
/* unused harmony export OrderEntryModel */
/* unused harmony export OrderAttachmentModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return DocumentUrlModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return OrderRelatedToModel;
});
/* unused harmony export OrderRelatedToModelResult */
/* unused harmony export OrderWithRelatedToViewModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "f", function () {
return OrderRelatedToViewModelGroupByModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return OrderChildParentFilterModel;
});
/* unused harmony export OrderDetailMasterViewModel */
/* unused harmony export LookupModel */
/* unused harmony export Front_OrderPreviousURLModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return DepartmentReportFilterWiseFilterModel;
});
/* harmony import */
var _common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
var OrderViewModel =
/*#__PURE__*/
_createClass2(function OrderViewModel() {
_classCallCheck(this, OrderViewModel);
});
var OrderAttachmentViewModel =
/*#__PURE__*/
_createClass2(function OrderAttachmentViewModel() {
_classCallCheck(this, OrderAttachmentViewModel);
});
var OrderTypeGroupListViewModel =
/*#__PURE__*/
_createClass2(function OrderTypeGroupListViewModel() {
_classCallCheck(this, OrderTypeGroupListViewModel);
});
var OrderPublicPortal =
/*#__PURE__*/
_createClass2(function OrderPublicPortal() {
_classCallCheck(this, OrderPublicPortal);
this.AttachmentList = [];
});
var AttachmentList =
/*#__PURE__*/
_createClass2(function AttachmentList() {
_classCallCheck(this, AttachmentList);
});
var OrderEntryfrontModel =
/*#__PURE__*/
_createClass2(function OrderEntryfrontModel() {
_classCallCheck(this, OrderEntryfrontModel);
//SectionCode: number | string;
this.AttachmentList = [];
this.IsLatest = -1;
this.DeptSectionCode = '0';
this.IndexModel = new _common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.Id = 0;
this.Type = "0";
this.Title = "";
this.IndividualBeneficiaryScheme = "";
this.OrderNo = "";
this.Date = "";
this.BeneficiaryCategory = 0;
this.AdmDepartmentCode = 0;
this.DepartmentCode = 0;
this.OfficeCode = 0;
this.SectorIds = 0;
this.Search = "";
this.FromDate = "";
this.ToDate = "";
this.SubTypeCode = 0;
this.EntryFromDate = "";
this.EntryToDate = "";
this.Status = 1;
this.IsNotJankalyan = true;
this.LookupCode = 0;
this.SchemeCode = 0;
this.DistrictCode = 0;
this.DesignationCode = 0;
this.OfficeCatCode = "0"; //this.SectionCode = "0";
this.IsNotJankalyan = -1;
this.IsImagesRequired = false;
});
var OrderEntryModel =
/*#__PURE__*/
_createClass2(function OrderEntryModel() {
_classCallCheck(this, OrderEntryModel);
this.DepartmentTitleHindi = '';
this.RelatedToOrderParameterList = [];
this.AttachmentList = [];
this.MediaUrlList = [];
this.RelatedOrderGroupViewModel = [];
});
var OrderAttachmentModel =
/*#__PURE__*/
_createClass2(function OrderAttachmentModel() {
_classCallCheck(this, OrderAttachmentModel);
});
var DocumentUrlModel =
/*#__PURE__*/
_createClass2(function DocumentUrlModel() {
_classCallCheck(this, DocumentUrlModel);
this.AttachmentList = [];
});
var OrderRelatedToModel =
/*#__PURE__*/
_createClass2(function OrderRelatedToModel() {
_classCallCheck(this, OrderRelatedToModel);
this.Id = 0;
this.ModuleId = "";
this.ModuleName = "";
this.DepartmentId = "";
this.DepartmentName = "";
this.YearValue = "";
this.YearText = "";
this.RelatedToResult = new OrderRelatedToModelResult();
});
var OrderRelatedToModelResult =
/*#__PURE__*/
_createClass2(function OrderRelatedToModelResult() {
_classCallCheck(this, OrderRelatedToModelResult);
this.pm_projecthdrid = "";
this.modulename = "";
this.prj_year = "";
this.prj_dept = "";
this.prj_ndept = "";
this.parano = "";
this.filenumber = "";
this.prj_description = "";
});
var OrderWithRelatedToViewModel =
/*#__PURE__*/
_createClass2(function OrderWithRelatedToViewModel() {
_classCallCheck(this, OrderWithRelatedToViewModel);
this.RelatedToData = [];
});
var OrderRelatedToViewModelGroupByModule =
/*#__PURE__*/
_createClass2(function OrderRelatedToViewModelGroupByModule() {
_classCallCheck(this, OrderRelatedToViewModelGroupByModule);
this.Item = [];
this.Item = [];
this.ModuleName = "";
});
var OrderChildParentFilterModel =
/*#__PURE__*/
_createClass2(function OrderChildParentFilterModel() {
_classCallCheck(this, OrderChildParentFilterModel);
this.Id = 0;
this.IndexModel = new _common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
});
var OrderDetailMasterViewModel =
/*#__PURE__*/
_createClass2(function OrderDetailMasterViewModel() {
_classCallCheck(this, OrderDetailMasterViewModel);
});
var LookupModel =
/*#__PURE__*/
_createClass2(function LookupModel() {
_classCallCheck(this, LookupModel);
}); // export class OrderPreviousUrlModel {
// Id: number;
// DepartmentCode: number | string;
// DistrictCode: number | string;
// OfficeCode: number | string;
// TypeCode: number | string;
// SubTypeCode: number | string;
// LookupCode: number | string;
// PreviousUrl: string;
// DepartmentTitle: string;
// DistrictTitle: string;
// OfficeName: string;
// TypeName: string;
// SubTypeName: string;
// LookupName: string;
// }
var Front_OrderPreviousURLModel =
/*#__PURE__*/
_createClass2(function Front_OrderPreviousURLModel() {
_classCallCheck(this, Front_OrderPreviousURLModel);
this.DepartmentPageCode = 0;
});
var DepartmentReportFilterWiseFilterModel =
/*#__PURE__*/
_createClass2(function DepartmentReportFilterWiseFilterModel() {
_classCallCheck(this, DepartmentReportFilterWiseFilterModel);
});
/***/
},
/***/
"Lhse":
/***/
function Lhse(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export getSymbolIterator */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return iterator;
});
/* unused harmony export $$iterator */
function getSymbolIterator() {
if (typeof Symbol !== 'function' || !Symbol.iterator) {
return '@@iterator';
}
return Symbol.iterator;
}
var iterator =
/*@__PURE__*/
getSymbolIterator();
var $$iterator = iterator; //# sourceMappingURL=iterator.js.map
/***/
},
/***/
"MLVi":
/***/
function MLVi(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return BaseService;
});
/* harmony import */
var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("tk/3");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("lJxs");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fXoL");
var BaseService =
/*@__PURE__*/
function () {
var BaseService =
/*#__PURE__*/
function () {
function BaseService(httpclient) {
_classCallCheck(this, BaseService);
this.httpclient = httpclient;
this.headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__[
/* HttpHeaders */
"d"]({
'Content-Type': 'application/json'
});
}
return _createClass2(BaseService, [{
key: "get",
value: function get(endPoint, params) {
var httpParams;
if (params) {
httpParams = this.buildParams(params);
}
return this.httpclient.get(endPoint, {
params: httpParams
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__[
/* map */
"a"])(function (response) {
return JSON.parse(JSON.stringify(response));
}));
}
}, {
key: "post",
value: function post(endPoint, requestObject) {
return this.httpclient.post(endPoint, requestObject, {
headers: this.headers
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__[
/* map */
"a"])(function (response) {
return JSON.parse(JSON.stringify(response));
}));
}
}, {
key: "postWithPrams",
value: function postWithPrams(endPoint, requestObject, params) {
var httpParams;
if (params) {
httpParams = this.buildParams(params);
}
return this.httpclient.post(endPoint, requestObject, {
params: httpParams
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__[
/* map */
"a"])(function (response) {
return JSON.parse(JSON.stringify(response));
}));
}
}, {
key: "put",
value: function put(endPoint, requestObject) {
return this.httpclient.put(endPoint, requestObject).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__[
/* map */
"a"])(function (res) {
return JSON.parse(JSON.stringify(res));
}));
}
}, {
key: "Delete",
value: function Delete(endPoint, params) {
var httpParams;
if (params) {
httpParams = this.buildParams(params);
}
return this.httpclient["delete"](endPoint, httpParams).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__[
/* map */
"a"])(function (res) {
return JSON.parse(JSON.stringify(res));
}));
}
/**
* buildParams - Converts from Dictionary to HttpParams
*/
}, {
key: "buildParams",
value: function buildParams(params) {
var httpParams = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__[
/* HttpParams */
"e"]();
if (params) {
var keys = params.Keys();
keys.forEach(function (key) {
httpParams = httpParams.append(key, params.Item(key));
});
}
return httpParams;
}
}]);
}();
BaseService.ɵfac = function BaseService_Factory(t) {
return new (t || BaseService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵinject */
"ec"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__[
/* HttpClient */
"b"]));
};
BaseService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__[
/* ɵɵdefineInjectable */
"Rb"]({
token: BaseService,
factory: BaseService.ɵfac
});
return BaseService;
}();
/***/
},
/***/
"MZWM":
/***/
function MZWM(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return DepartmentProfileViewModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return DepartmentProfileFilterModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return DepartmentContactFilterModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return DepartmentContactViewModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "g", function () {
return UserDetailFilterModel;
});
/* unused harmony export UserViewModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "f", function () {
return PrabhariMantriDetailModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return Front_DepartmentPageModel;
});
/* harmony import */
var _common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
var DepartmentProfileViewModel =
/*#__PURE__*/
_createClass2(function DepartmentProfileViewModel() {
_classCallCheck(this, DepartmentProfileViewModel);
});
var DepartmentProfileFilterModel =
/*#__PURE__*/
_createClass2(function DepartmentProfileFilterModel() {
_classCallCheck(this, DepartmentProfileFilterModel);
this.IndexModel = new _common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.DepartmentCode = 0;
this.OfficeCode = 0;
this.EntryTypeCode = 0;
this.JankalyanCategoryCode = 0;
this.LookupCode = 0;
});
var DepartmentContactFilterModel =
/*#__PURE__*/
_createClass2(function DepartmentContactFilterModel() {
_classCallCheck(this, DepartmentContactFilterModel);
this.IndexModel = new _common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.DepartmentCode = 0;
this.DesignationCode = 0;
});
var DepartmentContactViewModel =
/*#__PURE__*/
_createClass2(function DepartmentContactViewModel() {
_classCallCheck(this, DepartmentContactViewModel);
});
var UserDetailFilterModel =
/*#__PURE__*/
function (_common_model__WEBPAC) {
function UserDetailFilterModel() {
var _this91;
_classCallCheck(this, UserDetailFilterModel);
_this91 = _callSuper(this, UserDetailFilterModel);
_this91.DepartmentCode = 0;
_this91.UserType = '';
return _this91;
}
_inherits(UserDetailFilterModel, _common_model__WEBPAC);
return _createClass2(UserDetailFilterModel);
}(_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]);
var UserViewModel =
/*#__PURE__*/
_createClass2(function UserViewModel() {
_classCallCheck(this, UserViewModel);
});
var PrabhariMantriDetailModel =
/*#__PURE__*/
_createClass2(function PrabhariMantriDetailModel() {
_classCallCheck(this, PrabhariMantriDetailModel);
});
var Front_DepartmentPageModel =
/*#__PURE__*/
_createClass2(function Front_DepartmentPageModel() {
_classCallCheck(this, Front_DepartmentPageModel);
});
/***/
},
/***/
"MkmW":
/***/
function MkmW(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
function hostReportError(err) {
setTimeout(function () {
throw err;
}, 0);
}
exports.hostReportError = hostReportError;
/***/
},
/***/
"NJ4a":
/***/
function NJ4a(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return hostReportError;
});
function hostReportError(err) {
setTimeout(function () {
throw err;
}, 0);
} //# sourceMappingURL=hostReportError.js.map
/***/
},
/***/
"NTcF":
/***/
function NTcF(module, exports, __webpack_require__) {
"use strict";
var __extends = this && this.__extends ||
/*@__PURE__*/
function () {
var _extendStatics5 = function extendStatics(d, b) {
_extendStatics5 = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function (d, b) {
d.__proto__ = b;
} || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
};
return _extendStatics5(d, b);
};
return function (d, b) {
_extendStatics5(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var Scheduler_1 =
/*@__PURE__*/
__webpack_require__("ffpz");
var AsyncScheduler =
/*@__PURE__*/
function (_super) {
__extends(AsyncScheduler, _super);
function AsyncScheduler(SchedulerAction, now) {
if (now === void 0) {
now = Scheduler_1.Scheduler.now;
}
var _this = _super.call(this, SchedulerAction, function () {
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) {
return AsyncScheduler.delegate.now();
} else {
return now();
}
}) || this;
_this.actions = [];
_this.active = false;
_this.scheduled = undefined;
return _this;
}
AsyncScheduler.prototype.schedule = function (work, delay, state) {
if (delay === void 0) {
delay = 0;
}
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
return AsyncScheduler.delegate.schedule(work, delay, state);
} else {
return _super.prototype.schedule.call(this, work, delay, state);
}
};
AsyncScheduler.prototype.flush = function (action) {
var actions = this.actions;
if (this.active) {
actions.push(action);
return;
}
var error;
this.active = true;
do {
if (error = action.execute(action.state, action.delay)) {
break;
}
} while (action = actions.shift());
this.active = false;
if (error) {
while (action = actions.shift()) {
action.unsubscribe();
}
throw error;
}
};
return AsyncScheduler;
}(Scheduler_1.Scheduler);
exports.AsyncScheduler = AsyncScheduler;
/***/
},
/***/
"NXyV":
/***/
function NXyV(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return defer;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HDdC");
/* harmony import */
var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Cfvw");
/* harmony import */
var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("EY2u");
function defer(observableFactory) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__[
/* Observable */
"a"](function (subscriber) {
var input;
try {
input = observableFactory();
} catch (err) {
subscriber.error(err);
return undefined;
}
var source = input ? Object(_from__WEBPACK_IMPORTED_MODULE_1__[
/* from */
"a"])(input) : Object(_empty__WEBPACK_IMPORTED_MODULE_2__[
/* empty */
"b"])();
return source.subscribe(subscriber);
});
} //# sourceMappingURL=defer.js.map
/***/
},
/***/
"ODh8":
/***/
function ODh8(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export ImportantDecisionListModel */
/* unused harmony export SubCategoryGroupImportantDecisionListViewModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return ImportantDecisionSearchModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return ImportantDecisionDetailModel;
});
/* harmony import */
var _common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
var ImportantDecisionListModel =
/*#__PURE__*/
_createClass2(function ImportantDecisionListModel() {
_classCallCheck(this, ImportantDecisionListModel);
});
var SubCategoryGroupImportantDecisionListViewModel =
/*#__PURE__*/
_createClass2(function SubCategoryGroupImportantDecisionListViewModel() {
_classCallCheck(this, SubCategoryGroupImportantDecisionListViewModel);
});
var ImportantDecisionSearchModel =
/*#__PURE__*/
function (_common_model__WEBPAC2) {
function ImportantDecisionSearchModel() {
var _this92;
_classCallCheck(this, ImportantDecisionSearchModel);
_this92 = _callSuper(this, ImportantDecisionSearchModel);
_this92.AdmDepartmentCode = 0;
_this92.DepartmentCode = 0;
_this92.CategoryCode = 0;
_this92.SubcategoryCode = 0;
_this92.Status = 1; // this.PageSize = 10;
// this.IsPostBack = false;
// this.OrderByAsc = 0;
// this.Search = null;
// this.OrderBy = null;
// this.Page = 1;
return _this92;
}
_inherits(ImportantDecisionSearchModel, _common_model__WEBPAC2);
return _createClass2(ImportantDecisionSearchModel);
}(_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]);
var ImportantDecisionDetailModel =
/*#__PURE__*/
_createClass2(function ImportantDecisionDetailModel() {
_classCallCheck(this, ImportantDecisionDetailModel);
});
/***/
},
/***/
"PSD3":
/***/
function PSD3(module, exports, __webpack_require__) {
/*!
* sweetalert2 v11.26.18
* Released under the MIT License.
*/
(function (global, factory) {
true ? module.exports = factory() : undefined;
})(this, function () {
'use strict';
function _assertClassBrand(e, t, n) {
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
throw new TypeError("Private element is not present on this object");
}
function _checkPrivateRedeclaration(e, t) {
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
}
function _classPrivateFieldGet2(s, a) {
return s.get(_assertClassBrand(s, a));
}
function _classPrivateFieldInitSpec(e, t, a) {
_checkPrivateRedeclaration(e, t), t.set(e, a);
}
function _classPrivateFieldSet2(s, a, r) {
return s.set(_assertClassBrand(s, a), r), r;
}
var RESTORE_FOCUS_TIMEOUT = 100;
/** @type {GlobalState} */
var globalState = {};
var focusPreviousActiveElement = function focusPreviousActiveElement() {
if (globalState.previousActiveElement instanceof HTMLElement) {
globalState.previousActiveElement.focus();
globalState.previousActiveElement = null;
} else if (document.body) {
document.body.focus();
}
};
/**
* Restore previous active (focused) element
*
* @param {boolean} returnFocus
* @returns {Promise}
*/
var restoreActiveElement = function restoreActiveElement(returnFocus) {
return new Promise(function (resolve) {
if (!returnFocus) {
return resolve();
}
var x = window.scrollX;
var y = window.scrollY;
globalState.restoreFocusTimeout = setTimeout(function () {
focusPreviousActiveElement();
resolve();
}, RESTORE_FOCUS_TIMEOUT); // issues/900
window.scrollTo(x, y);
});
};
var swalPrefix = 'swal2-';
/**
* @typedef {Record} SwalClasses
*/
/**
* @typedef {'success' | 'warning' | 'info' | 'question' | 'error'} SwalIcon
* @typedef {Record} SwalIcons
*/
/** @type {SwalClass[]} */
var classNames = ['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'show', 'hide', 'close', 'title', 'html-container', 'actions', 'confirm', 'deny', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'input-label', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loader', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error', 'draggable', 'dragging'];
var swalClasses = classNames.reduce(function (acc, className) {
acc[className] = swalPrefix + className;
return acc;
},
/** @type {SwalClasses} */
{});
/** @type {SwalIcon[]} */
var icons = ['success', 'warning', 'info', 'question', 'error'];
var iconTypes = icons.reduce(function (acc, icon) {
acc[icon] = swalPrefix + icon;
return acc;
},
/** @type {SwalIcons} */
{});
var consolePrefix = 'SweetAlert2:';
/**
* Capitalize the first letter of a string
*
* @param {string} str
* @returns {string}
*/
var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
};
/**
* Standardize console warnings
*
* @param {string | string[]} message
*/
var warn = function warn(message) {
console.warn("".concat(consolePrefix, " ").concat(typeof message === 'object' ? message.join(' ') : message));
};
/**
* Standardize console errors
*
* @param {string} message
*/
var error = function error(message) {
console.error("".concat(consolePrefix, " ").concat(message));
};
/**
* Private global state for `warnOnce`
*
* @type {string[]}
* @private
*/
var previousWarnOnceMessages = [];
/**
* Show a console warning, but only if it hasn't already been shown
*
* @param {string} message
*/
var warnOnce = function warnOnce(message) {
if (!previousWarnOnceMessages.includes(message)) {
previousWarnOnceMessages.push(message);
warn(message);
}
};
/**
* Show a one-time console warning about deprecated params/methods
*
* @param {string} deprecatedParam
* @param {string?} useInstead
*/
var warnAboutDeprecation = function warnAboutDeprecation(deprecatedParam) {
var useInstead = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
warnOnce("\"".concat(deprecatedParam, "\" is deprecated and will be removed in the next major release.").concat(useInstead ? " Use \"".concat(useInstead, "\" instead.") : ''));
};
/**
* If `arg` is a function, call it (with no arguments or context) and return the result.
* Otherwise, just pass the value through
*
* @param {(() => *) | *} arg
* @returns {*}
*/
var callIfFunction = function callIfFunction(arg) {
return typeof arg === 'function' ? arg() : arg;
};
/**
* @param {*} arg
* @returns {boolean}
*/
var hasToPromiseFn = function hasToPromiseFn(arg) {
return arg && typeof arg.toPromise === 'function';
};
/**
* @param {*} arg
* @returns {Promise<*>}
*/
var asPromise = function asPromise(arg) {
return hasToPromiseFn(arg) ? arg.toPromise() : Promise.resolve(arg);
};
/**
* @param {*} arg
* @returns {boolean}
*/
var isPromise = function isPromise(arg) {
return arg && Promise.resolve(arg) === arg;
};
/**
* Gets the popup container which contains the backdrop and the popup itself.
*
* @returns {HTMLElement | null}
*/
var getContainer = function getContainer() {
return document.body.querySelector(".".concat(swalClasses.container));
};
/**
* @param {string} selectorString
* @returns {HTMLElement | null}
*/
var elementBySelector = function elementBySelector(selectorString) {
var container = getContainer();
return container ? container.querySelector(selectorString) : null;
};
/**
* @param {string} className
* @returns {HTMLElement | null}
*/
var elementByClass = function elementByClass(className) {
return elementBySelector(".".concat(className));
};
/**
* @returns {HTMLElement | null}
*/
var getPopup = function getPopup() {
return elementByClass(swalClasses.popup);
};
/**
* @returns {HTMLElement | null}
*/
var getIcon = function getIcon() {
return elementByClass(swalClasses.icon);
};
/**
* @returns {HTMLElement | null}
*/
var getIconContent = function getIconContent() {
return elementByClass(swalClasses['icon-content']);
};
/**
* @returns {HTMLElement | null}
*/
var getTitle = function getTitle() {
return elementByClass(swalClasses.title);
};
/**
* @returns {HTMLElement | null}
*/
var getHtmlContainer = function getHtmlContainer() {
return elementByClass(swalClasses['html-container']);
};
/**
* @returns {HTMLElement | null}
*/
var getImage = function getImage() {
return elementByClass(swalClasses.image);
};
/**
* @returns {HTMLElement | null}
*/
var getProgressSteps = function getProgressSteps() {
return elementByClass(swalClasses['progress-steps']);
};
/**
* @returns {HTMLElement | null}
*/
var getValidationMessage = function getValidationMessage() {
return elementByClass(swalClasses['validation-message']);
};
/**
* @returns {HTMLButtonElement | null}
*/
var getConfirmButton = function getConfirmButton() {
return (
/** @type {HTMLButtonElement} */
elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.confirm))
);
};
/**
* @returns {HTMLButtonElement | null}
*/
var getCancelButton = function getCancelButton() {
return (
/** @type {HTMLButtonElement} */
elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.cancel))
);
};
/**
* @returns {HTMLButtonElement | null}
*/
var getDenyButton = function getDenyButton() {
return (
/** @type {HTMLButtonElement} */
elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.deny))
);
};
/**
* @returns {HTMLElement | null}
*/
var getInputLabel = function getInputLabel() {
return elementByClass(swalClasses['input-label']);
};
/**
* @returns {HTMLElement | null}
*/
var getLoader = function getLoader() {
return elementBySelector(".".concat(swalClasses.loader));
};
/**
* @returns {HTMLElement | null}
*/
var getActions = function getActions() {
return elementByClass(swalClasses.actions);
};
/**
* @returns {HTMLElement | null}
*/
var getFooter = function getFooter() {
return elementByClass(swalClasses.footer);
};
/**
* @returns {HTMLElement | null}
*/
var getTimerProgressBar = function getTimerProgressBar() {
return elementByClass(swalClasses['timer-progress-bar']);
};
/**
* @returns {HTMLElement | null}
*/
var getCloseButton = function getCloseButton() {
return elementByClass(swalClasses.close);
}; // https://github.com/jkup/focusable/blob/master/index.js
var focusable = "\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex=\"0\"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n";
/**
* @returns {HTMLElement[]}
*/
var getFocusableElements = function getFocusableElements() {
var popup = getPopup();
if (!popup) {
return [];
}
/** @type {NodeListOf} */
var focusableElementsWithTabindex = popup.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])');
var focusableElementsWithTabindexSorted = Array.from(focusableElementsWithTabindex) // sort according to tabindex
.sort(function (a, b) {
var tabindexA = parseInt(a.getAttribute('tabindex') || '0');
var tabindexB = parseInt(b.getAttribute('tabindex') || '0');
if (tabindexA > tabindexB) {
return 1;
} else if (tabindexA < tabindexB) {
return -1;
}
return 0;
});
/** @type {NodeListOf} */
var otherFocusableElements = popup.querySelectorAll(focusable);
var otherFocusableElementsFiltered = Array.from(otherFocusableElements).filter(function (el) {
return el.getAttribute('tabindex') !== '-1';
});
return _toConsumableArray(new Set(focusableElementsWithTabindexSorted.concat(otherFocusableElementsFiltered))).filter(function (el) {
return isVisible$1(el);
});
};
/**
* @returns {boolean}
*/
var isModal = function isModal() {
return hasClass(document.body, swalClasses.shown) && !hasClass(document.body, swalClasses['toast-shown']) && !hasClass(document.body, swalClasses['no-backdrop']);
};
/**
* @returns {boolean}
*/
var isToast = function isToast() {
var popup = getPopup();
if (!popup) {
return false;
}
return hasClass(popup, swalClasses.toast);
};
/**
* @returns {boolean}
*/
var isLoading = function isLoading() {
var popup = getPopup();
if (!popup) {
return false;
}
return popup.hasAttribute('data-loading');
};
/**
* Securely set innerHTML of an element
* https://github.com/sweetalert2/sweetalert2/issues/1926
*
* @param {HTMLElement} elem
* @param {string} html
*/
var setInnerHtml = function setInnerHtml(elem, html) {
elem.textContent = '';
if (html) {
var parser = new DOMParser();
var parsed = parser.parseFromString(html, "text/html");
var head = parsed.querySelector('head');
if (head) {
Array.from(head.childNodes).forEach(function (child) {
elem.appendChild(child);
});
}
var body = parsed.querySelector('body');
if (body) {
Array.from(body.childNodes).forEach(function (child) {
if (child instanceof HTMLVideoElement || child instanceof HTMLAudioElement) {
elem.appendChild(child.cloneNode(true)); // https://github.com/sweetalert2/sweetalert2/issues/2507
} else {
elem.appendChild(child);
}
});
}
}
};
/**
* @param {HTMLElement} elem
* @param {string} className
* @returns {boolean}
*/
var hasClass = function hasClass(elem, className) {
if (!className) {
return false;
}
var classList = className.split(/\s+/);
for (var i = 0; i < classList.length; i++) {
if (!elem.classList.contains(classList[i])) {
return false;
}
}
return true;
};
/**
* @param {HTMLElement} elem
* @param {SweetAlertOptions} params
*/
var removeCustomClasses = function removeCustomClasses(elem, params) {
Array.from(elem.classList).forEach(function (className) {
if (!Object.values(swalClasses).includes(className) && !Object.values(iconTypes).includes(className) && !Object.values(params.showClass || {}).includes(className)) {
elem.classList.remove(className);
}
});
};
/**
* @param {HTMLElement} elem
* @param {SweetAlertOptions} params
* @param {string} className
*/
var applyCustomClass = function applyCustomClass(elem, params, className) {
removeCustomClasses(elem, params);
if (!params.customClass) {
return;
}
var customClass = params.customClass[
/** @type {keyof SweetAlertCustomClass} */
className];
if (!customClass) {
return;
}
if (typeof customClass !== 'string' && !customClass.forEach) {
warn("Invalid type of customClass.".concat(className, "! Expected string or iterable object, got \"").concat(typeof customClass, "\""));
return;
}
addClass(elem, customClass);
};
/**
* @param {HTMLElement} popup
* @param {import('./renderers/renderInput').InputClass | SweetAlertInput} inputClass
* @returns {HTMLInputElement | null}
*/
var getInput$1 = function getInput$1(popup, inputClass) {
if (!inputClass) {
return null;
}
switch (inputClass) {
case 'select':
case 'textarea':
case 'file':
return popup.querySelector(".".concat(swalClasses.popup, " > .").concat(swalClasses[inputClass]));
case 'checkbox':
return popup.querySelector(".".concat(swalClasses.popup, " > .").concat(swalClasses.checkbox, " input"));
case 'radio':
return popup.querySelector(".".concat(swalClasses.popup, " > .").concat(swalClasses.radio, " input:checked")) || popup.querySelector(".".concat(swalClasses.popup, " > .").concat(swalClasses.radio, " input:first-child"));
case 'range':
return popup.querySelector(".".concat(swalClasses.popup, " > .").concat(swalClasses.range, " input"));
default:
return popup.querySelector(".".concat(swalClasses.popup, " > .").concat(swalClasses.input));
}
};
/**
* @param {HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement} input
*/
var focusInput = function focusInput(input) {
input.focus(); // place cursor at end of text in text input
if (input.type !== 'file') {
// http://stackoverflow.com/a/2345915
var val = input.value;
input.value = '';
input.value = val;
}
};
/**
* @param {HTMLElement | HTMLElement[] | null} target
* @param {string | string[] | readonly string[] | undefined} classList
* @param {boolean} condition
*/
var toggleClass = function toggleClass(target, classList, condition) {
if (!target || !classList) {
return;
}
if (typeof classList === 'string') {
classList = classList.split(/\s+/).filter(Boolean);
}
classList.forEach(function (className) {
if (Array.isArray(target)) {
target.forEach(function (elem) {
if (condition) {
elem.classList.add(className);
} else {
elem.classList.remove(className);
}
});
} else {
if (condition) {
target.classList.add(className);
} else {
target.classList.remove(className);
}
}
});
};
/**
* @param {HTMLElement | HTMLElement[] | null} target
* @param {string | string[] | readonly string[] | undefined} classList
*/
var addClass = function addClass(target, classList) {
toggleClass(target, classList, true);
};
/**
* @param {HTMLElement | HTMLElement[] | null} target
* @param {string | string[] | readonly string[] | undefined} classList
*/
var removeClass = function removeClass(target, classList) {
toggleClass(target, classList, false);
};
/**
* Get direct child of an element by class name
*
* @param {HTMLElement} elem
* @param {string} className
* @returns {HTMLElement | undefined}
*/
var getDirectChildByClass = function getDirectChildByClass(elem, className) {
var children = Array.from(elem.children);
for (var i = 0; i < children.length; i++) {
var child = children[i];
if (child instanceof HTMLElement && hasClass(child, className)) {
return child;
}
}
};
/**
* @param {HTMLElement} elem
* @param {string} property
* @param {string | number | null | undefined} value
*/
var applyNumericalStyle = function applyNumericalStyle(elem, property, value) {
if (value === "".concat(parseInt("".concat(value)))) {
value = parseInt(value);
}
if (value || parseInt("".concat(value)) === 0) {
elem.style.setProperty(property, typeof value === 'number' ? "".concat(value, "px") :
/** @type {string} */
value);
} else {
elem.style.removeProperty(property);
}
};
/**
* @param {HTMLElement | null} elem
* @param {string} display
*/
var show = function show(elem) {
var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
if (!elem) {
return;
}
elem.style.display = display;
};
/**
* @param {HTMLElement | null} elem
*/
var hide = function hide(elem) {
if (!elem) {
return;
}
elem.style.display = 'none';
};
/**
* @param {HTMLElement | null} elem
* @param {string} display
*/
var showWhenInnerHtmlPresent = function showWhenInnerHtmlPresent(elem) {
var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'block';
if (!elem) {
return;
}
new MutationObserver(function () {
toggle(elem, elem.innerHTML, display);
}).observe(elem, {
childList: true,
subtree: true
});
};
/**
* @param {HTMLElement} parent
* @param {string} selector
* @param {string} property
* @param {string} value
*/
var setStyle = function setStyle(parent, selector, property, value) {
/** @type {HTMLElement | null} */
var el = parent.querySelector(selector);
if (el) {
el.style.setProperty(property, value);
}
};
/**
* @param {HTMLElement} elem
* @param {boolean | string | null | undefined} condition
* @param {string} display
*/
var toggle = function toggle(elem, condition) {
var display = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'flex';
if (condition) {
show(elem, display);
} else {
hide(elem);
}
};
/**
* borrowed from jquery $(elem).is(':visible') implementation
*
* @param {HTMLElement | null} elem
* @returns {boolean}
*/
var isVisible$1 = function isVisible$1(elem) {
return Boolean(elem && (elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length));
};
/**
* @returns {boolean}
*/
var allButtonsAreHidden = function allButtonsAreHidden() {
return !isVisible$1(getConfirmButton()) && !isVisible$1(getDenyButton()) && !isVisible$1(getCancelButton());
};
/**
* @param {HTMLElement} elem
* @returns {boolean}
*/
var isScrollable = function isScrollable(elem) {
return Boolean(elem.scrollHeight > elem.clientHeight);
};
/**
* @param {HTMLElement} element
* @param {HTMLElement} stopElement
* @returns {boolean}
*/
var selfOrParentIsScrollable = function selfOrParentIsScrollable(element, stopElement) {
var parent =
/** @type {HTMLElement | null} */
element;
while (parent && parent !== stopElement) {
if (isScrollable(parent)) {
return true;
}
parent = parent.parentElement;
}
return false;
};
/**
* borrowed from https://stackoverflow.com/a/46352119
*
* @param {HTMLElement} elem
* @returns {boolean}
*/
var hasCssAnimation = function hasCssAnimation(elem) {
var style = window.getComputedStyle(elem);
var animDuration = parseFloat(style.getPropertyValue('animation-duration') || '0');
var transDuration = parseFloat(style.getPropertyValue('transition-duration') || '0');
return animDuration > 0 || transDuration > 0;
};
/**
* @param {number} timer
* @param {boolean} reset
*/
var animateTimerProgressBar = function animateTimerProgressBar(timer) {
var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var timerProgressBar = getTimerProgressBar();
if (!timerProgressBar) {
return;
}
if (isVisible$1(timerProgressBar)) {
if (reset) {
timerProgressBar.style.transition = 'none';
timerProgressBar.style.width = '100%';
}
setTimeout(function () {
timerProgressBar.style.transition = "width ".concat(timer / 1000, "s linear");
timerProgressBar.style.width = '0%';
}, 10);
}
};
var stopTimerProgressBar = function stopTimerProgressBar() {
var timerProgressBar = getTimerProgressBar();
if (!timerProgressBar) {
return;
}
var timerProgressBarWidth = parseInt(window.getComputedStyle(timerProgressBar).width);
timerProgressBar.style.removeProperty('transition');
timerProgressBar.style.width = '100%';
var timerProgressBarFullWidth = parseInt(window.getComputedStyle(timerProgressBar).width);
var timerProgressBarPercent = timerProgressBarWidth / timerProgressBarFullWidth * 100;
timerProgressBar.style.width = "".concat(timerProgressBarPercent, "%");
};
/**
* Detect Node env
*
* @returns {boolean}
*/
var isNodeEnv = function isNodeEnv() {
return typeof window === 'undefined' || typeof document === 'undefined';
};
var sweetHTML = "\n \n").replace(/(^|\n)\s*/g, '');
/**
* @returns {boolean}
*/
var resetOldContainer = function resetOldContainer() {
var oldContainer = getContainer();
if (!oldContainer) {
return false;
}
oldContainer.remove();
removeClass([document.documentElement, document.body], [swalClasses['no-backdrop'], swalClasses['toast-shown'], // @ts-ignore: 'has-column' is not defined in swalClasses but may be set dynamically
swalClasses['has-column']]);
return true;
};
var resetValidationMessage$1 = function resetValidationMessage$1() {
if (globalState.currentInstance) {
globalState.currentInstance.resetValidationMessage();
}
};
var addInputChangeListeners = function addInputChangeListeners() {
var popup = getPopup();
if (!popup) {
return;
}
var input = getDirectChildByClass(popup, swalClasses.input);
var file = getDirectChildByClass(popup, swalClasses.file);
/** @type {HTMLInputElement | null} */
var range = popup.querySelector(".".concat(swalClasses.range, " input"));
/** @type {HTMLOutputElement | null} */
var rangeOutput = popup.querySelector(".".concat(swalClasses.range, " output"));
var select = getDirectChildByClass(popup, swalClasses.select);
/** @type {HTMLInputElement | null} */
var checkbox = popup.querySelector(".".concat(swalClasses.checkbox, " input"));
var textarea = getDirectChildByClass(popup, swalClasses.textarea);
if (input) {
input.oninput = resetValidationMessage$1;
}
if (file) {
file.onchange = resetValidationMessage$1;
}
if (select) {
select.onchange = resetValidationMessage$1;
}
if (checkbox) {
checkbox.onchange = resetValidationMessage$1;
}
if (textarea) {
textarea.oninput = resetValidationMessage$1;
}
if (range && rangeOutput) {
range.oninput = function () {
resetValidationMessage$1();
rangeOutput.value = range.value;
};
range.onchange = function () {
resetValidationMessage$1();
rangeOutput.value = range.value;
};
}
};
/**
* @param {string | HTMLElement} target
* @returns {HTMLElement}
*/
var getTarget = function getTarget(target) {
if (typeof target === 'string') {
var element = document.querySelector(target);
if (!element) {
throw new Error("Target element \"".concat(target, "\" not found"));
}
return (
/** @type {HTMLElement} */
element
);
}
return target;
};
/**
* @param {SweetAlertOptions} params
*/
var setupAccessibility = function setupAccessibility(params) {
var popup = getPopup();
if (!popup) {
return;
}
popup.setAttribute('role', params.toast ? 'alert' : 'dialog');
popup.setAttribute('aria-live', params.toast ? 'polite' : 'assertive');
if (!params.toast) {
popup.setAttribute('aria-modal', 'true');
}
};
/**
* @param {HTMLElement} targetElement
*/
var setupRTL = function setupRTL(targetElement) {
if (window.getComputedStyle(targetElement).direction === 'rtl') {
addClass(getContainer(), swalClasses.rtl);
globalState.isRTL = true;
}
};
/**
* Add modal + backdrop to DOM
*
* @param {SweetAlertOptions} params
*/
var init = function init(params) {
// Clean up the old popup container if it exists
var oldContainerExisted = resetOldContainer();
if (isNodeEnv()) {
error('SweetAlert2 requires document to initialize');
return;
}
var container = document.createElement('div');
container.className = swalClasses.container;
if (oldContainerExisted) {
addClass(container, swalClasses['no-transition']);
}
setInnerHtml(container, sweetHTML);
container.dataset['swal2Theme'] = params.theme;
var targetElement = getTarget(params.target || 'body');
targetElement.appendChild(container);
if (params.topLayer) {
container.setAttribute('popover', '');
container.showPopover();
}
setupAccessibility(params);
setupRTL(targetElement);
addInputChangeListeners();
};
/**
* @param {HTMLElement | object | string} param
* @param {HTMLElement} target
*/
var parseHtmlToContainer = function parseHtmlToContainer(param, target) {
// DOM element
if (param instanceof HTMLElement) {
target.appendChild(param);
} // Object
else if (typeof param === 'object') {
handleObject(param, target);
} // Plain string
else if (param) {
setInnerHtml(target, param);
}
};
/**
* @param {object} param
* @param {HTMLElement} target
*/
var handleObject = function handleObject(param, target) {
// JQuery element(s)
if ('jquery' in param) {
handleJqueryElem(target, param);
} // For other objects use their string representation
else {
setInnerHtml(target, param.toString());
}
};
/**
* @param {HTMLElement} target
* @param {any} elem
*/
var handleJqueryElem = function handleJqueryElem(target, elem) {
target.textContent = '';
if (0 in elem) {
for (var i = 0; i in elem; i++) {
target.appendChild(elem[i].cloneNode(true));
}
} else {
target.appendChild(elem.cloneNode(true));
}
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderActions = function renderActions(instance, params) {
var actions = getActions();
var loader = getLoader();
if (!actions || !loader) {
return;
} // Actions (buttons) wrapper
if (!params.showConfirmButton && !params.showDenyButton && !params.showCancelButton) {
hide(actions);
} else {
show(actions);
} // Custom class
applyCustomClass(actions, params, 'actions'); // Render all the buttons
renderButtons(actions, loader, params); // Loader
setInnerHtml(loader, params.loaderHtml || '');
applyCustomClass(loader, params, 'loader');
};
/**
* @param {HTMLElement} actions
* @param {HTMLElement} loader
* @param {SweetAlertOptions} params
*/
function renderButtons(actions, loader, params) {
var confirmButton = getConfirmButton();
var denyButton = getDenyButton();
var cancelButton = getCancelButton();
if (!confirmButton || !denyButton || !cancelButton) {
return;
} // Render buttons
renderButton(confirmButton, 'confirm', params);
renderButton(denyButton, 'deny', params);
renderButton(cancelButton, 'cancel', params);
handleButtonsStyling(confirmButton, denyButton, cancelButton, params);
if (params.reverseButtons) {
if (params.toast) {
actions.insertBefore(cancelButton, confirmButton);
actions.insertBefore(denyButton, confirmButton);
} else {
actions.insertBefore(cancelButton, loader);
actions.insertBefore(denyButton, loader);
actions.insertBefore(confirmButton, loader);
}
}
}
/**
* @param {HTMLElement} confirmButton
* @param {HTMLElement} denyButton
* @param {HTMLElement} cancelButton
* @param {SweetAlertOptions} params
*/
function handleButtonsStyling(confirmButton, denyButton, cancelButton, params) {
if (!params.buttonsStyling) {
removeClass([confirmButton, denyButton, cancelButton], swalClasses.styled);
return;
}
addClass([confirmButton, denyButton, cancelButton], swalClasses.styled); // Apply custom background colors to action buttons
if (params.confirmButtonColor) {
confirmButton.style.setProperty('--swal2-confirm-button-background-color', params.confirmButtonColor);
}
if (params.denyButtonColor) {
denyButton.style.setProperty('--swal2-deny-button-background-color', params.denyButtonColor);
}
if (params.cancelButtonColor) {
cancelButton.style.setProperty('--swal2-cancel-button-background-color', params.cancelButtonColor);
} // Apply the outline color to action buttons
applyOutlineColor(confirmButton);
applyOutlineColor(denyButton);
applyOutlineColor(cancelButton);
}
/**
* @param {HTMLElement} button
*/
function applyOutlineColor(button) {
var buttonStyle = window.getComputedStyle(button);
if (buttonStyle.getPropertyValue('--swal2-action-button-focus-box-shadow')) {
// If the button already has a custom outline color, no need to change it
return;
}
var outlineColor = buttonStyle.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, 'rgba($1, $2, $3, 0.5)');
button.style.setProperty('--swal2-action-button-focus-box-shadow', buttonStyle.getPropertyValue('--swal2-outline').replace(/ rgba\(.*/, " ".concat(outlineColor)));
}
/**
* @param {HTMLElement} button
* @param {'confirm' | 'deny' | 'cancel'} buttonType
* @param {SweetAlertOptions} params
*/
function renderButton(button, buttonType, params) {
var buttonName =
/** @type {'Confirm' | 'Deny' | 'Cancel'} */
capitalizeFirstLetter(buttonType);
toggle(button, params["show".concat(buttonName, "Button")], 'inline-block');
setInnerHtml(button, params["".concat(buttonType, "ButtonText")] || ''); // Set caption text
button.setAttribute('aria-label', params["".concat(buttonType, "ButtonAriaLabel")] || ''); // ARIA label
// Add buttons custom classes
button.className = swalClasses[buttonType];
applyCustomClass(button, params, "".concat(buttonType, "Button"));
}
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderCloseButton = function renderCloseButton(instance, params) {
var closeButton = getCloseButton();
if (!closeButton) {
return;
}
setInnerHtml(closeButton, params.closeButtonHtml || ''); // Custom class
applyCustomClass(closeButton, params, 'closeButton');
toggle(closeButton, params.showCloseButton);
closeButton.setAttribute('aria-label', params.closeButtonAriaLabel || '');
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderContainer = function renderContainer(instance, params) {
var container = getContainer();
if (!container) {
return;
}
handleBackdropParam(container, params.backdrop);
handlePositionParam(container, params.position);
handleGrowParam(container, params.grow); // Custom class
applyCustomClass(container, params, 'container');
};
/**
* @param {HTMLElement} container
* @param {SweetAlertOptions['backdrop']} backdrop
*/
function handleBackdropParam(container, backdrop) {
if (typeof backdrop === 'string') {
container.style.background = backdrop;
} else if (!backdrop) {
addClass([document.documentElement, document.body], swalClasses['no-backdrop']);
}
}
/**
* @param {HTMLElement} container
* @param {SweetAlertOptions['position']} position
*/
function handlePositionParam(container, position) {
if (!position) {
return;
}
if (position in swalClasses) {
addClass(container, swalClasses[position]);
} else {
warn('The "position" parameter is not valid, defaulting to "center"');
addClass(container, swalClasses.center);
}
}
/**
* @param {HTMLElement} container
* @param {SweetAlertOptions['grow']} grow
*/
function handleGrowParam(container, grow) {
if (!grow) {
return;
}
addClass(container, swalClasses["grow-".concat(grow)]);
}
/**
* This module contains `WeakMap`s for each effectively-"private property" that a `Swal` has.
* For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
* This is the approach that Babel will probably take to implement private methods/fields
* https://github.com/tc39/proposal-private-methods
* https://github.com/babel/babel/pull/7555
* Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
* then we can use that language feature.
*/
var privateProps = {
innerParams: new WeakMap(),
domCache: new WeakMap()
}; ///
/** @type {InputClass[]} */
var inputClasses = ['input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea'];
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderInput = function renderInput(instance, params) {
var popup = getPopup();
if (!popup) {
return;
}
var innerParams = privateProps.innerParams.get(instance);
var rerender = !innerParams || params.input !== innerParams.input;
inputClasses.forEach(function (inputClass) {
var inputContainer = getDirectChildByClass(popup, swalClasses[inputClass]);
if (!inputContainer) {
return;
} // set attributes
setAttributes(inputClass, params.inputAttributes); // set class
inputContainer.className = swalClasses[inputClass];
if (rerender) {
hide(inputContainer);
}
});
if (params.input) {
if (rerender) {
showInput(params);
} // set custom class
setCustomClass(params);
}
};
/**
* @param {SweetAlertOptions} params
*/
var showInput = function showInput(params) {
if (!params.input) {
return;
}
if (!renderInputType[params.input]) {
error("Unexpected type of input! Expected ".concat(Object.keys(renderInputType).join(' | '), ", got \"").concat(params.input, "\""));
return;
}
var inputContainer = getInputContainer(params.input);
if (!inputContainer) {
return;
}
var input = renderInputType[params.input](inputContainer, params);
show(inputContainer); // input autofocus
if (params.inputAutoFocus) {
setTimeout(function () {
focusInput(input);
});
}
};
/**
* @param {HTMLInputElement} input
*/
var removeAttributes = function removeAttributes(input) {
for (var i = 0; i < input.attributes.length; i++) {
var attrName = input.attributes[i].name;
if (!['id', 'type', 'value', 'style'].includes(attrName)) {
input.removeAttribute(attrName);
}
}
};
/**
* @param {InputClass} inputClass
* @param {SweetAlertOptions['inputAttributes']} inputAttributes
*/
var setAttributes = function setAttributes(inputClass, inputAttributes) {
var popup = getPopup();
if (!popup) {
return;
}
var input = getInput$1(popup, inputClass);
if (!input) {
return;
}
removeAttributes(input);
for (var attr in inputAttributes) {
input.setAttribute(attr, inputAttributes[attr]);
}
};
/**
* @param {SweetAlertOptions} params
*/
var setCustomClass = function setCustomClass(params) {
if (!params.input) {
return;
}
var inputContainer = getInputContainer(params.input);
if (inputContainer) {
applyCustomClass(inputContainer, params, 'input');
}
};
/**
* @param {HTMLInputElement | HTMLTextAreaElement} input
* @param {SweetAlertOptions} params
*/
var setInputPlaceholder = function setInputPlaceholder(input, params) {
if (!input.placeholder && params.inputPlaceholder) {
input.placeholder = params.inputPlaceholder;
}
};
/**
* @param {Input} input
* @param {Input} prependTo
* @param {SweetAlertOptions} params
*/
var setInputLabel = function setInputLabel(input, prependTo, params) {
if (params.inputLabel) {
var label = document.createElement('label');
var labelClass = swalClasses['input-label'];
label.setAttribute('for', input.id);
label.className = labelClass;
if (typeof params.customClass === 'object') {
addClass(label, params.customClass.inputLabel);
}
label.innerText = params.inputLabel;
prependTo.insertAdjacentElement('beforebegin', label);
}
};
/**
* @param {SweetAlertInput} inputType
* @returns {HTMLElement | undefined}
*/
var getInputContainer = function getInputContainer(inputType) {
var popup = getPopup();
if (!popup) {
return;
}
return getDirectChildByClass(popup, swalClasses[
/** @type {SwalClass} */
inputType] || swalClasses.input);
};
/**
* @param {HTMLInputElement | HTMLOutputElement | HTMLTextAreaElement} input
* @param {SweetAlertOptions['inputValue']} inputValue
*/
var checkAndSetInputValue = function checkAndSetInputValue(input, inputValue) {
if (['string', 'number'].includes(typeof inputValue)) {
input.value = "".concat(inputValue);
} else if (!isPromise(inputValue)) {
warn("Unexpected type of inputValue! Expected \"string\", \"number\" or \"Promise\", got \"".concat(typeof inputValue, "\""));
}
};
/** @type {Record Input>} */
var renderInputType = {};
/**
* @param {Input | HTMLElement} input
* @param {SweetAlertOptions} params
* @returns {Input}
*/
renderInputType.text = renderInputType.email = renderInputType.password = renderInputType.number = renderInputType.tel = renderInputType.url = renderInputType.search = renderInputType.date = renderInputType['datetime-local'] = renderInputType.time = renderInputType.week = renderInputType.month =
/** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
function (input, params) {
var inputElement =
/** @type {HTMLInputElement} */
input;
checkAndSetInputValue(inputElement, params.inputValue);
setInputLabel(inputElement, inputElement, params);
setInputPlaceholder(inputElement, params);
inputElement.type =
/** @type {string} */
params.input;
return inputElement;
};
/**
* @param {Input | HTMLElement} input
* @param {SweetAlertOptions} params
* @returns {Input}
*/
renderInputType.file = function (input, params) {
var inputElement =
/** @type {HTMLInputElement} */
input;
setInputLabel(inputElement, inputElement, params);
setInputPlaceholder(inputElement, params);
return inputElement;
};
/**
* @param {Input | HTMLElement} range
* @param {SweetAlertOptions} params
* @returns {Input}
*/
renderInputType.range = function (range, params) {
var rangeContainer =
/** @type {HTMLElement} */
range;
var rangeInput = rangeContainer.querySelector('input');
var rangeOutput = rangeContainer.querySelector('output');
if (rangeInput) {
checkAndSetInputValue(rangeInput, params.inputValue);
rangeInput.type =
/** @type {string} */
params.input;
setInputLabel(rangeInput,
/** @type {Input} */
range, params);
}
if (rangeOutput) {
checkAndSetInputValue(rangeOutput, params.inputValue);
}
return (
/** @type {Input} */
range
);
};
/**
* @param {Input | HTMLElement} select
* @param {SweetAlertOptions} params
* @returns {Input}
*/
renderInputType.select = function (select, params) {
var selectElement =
/** @type {HTMLSelectElement} */
select;
selectElement.textContent = '';
if (params.inputPlaceholder) {
var placeholder = document.createElement('option');
setInnerHtml(placeholder, params.inputPlaceholder);
placeholder.value = '';
placeholder.disabled = true;
placeholder.selected = true;
selectElement.appendChild(placeholder);
}
setInputLabel(selectElement, selectElement, params);
return selectElement;
};
/**
* @param {Input | HTMLElement} radio
* @returns {Input}
*/
renderInputType.radio = function (radio) {
var radioElement =
/** @type {HTMLElement} */
radio;
radioElement.textContent = '';
return (
/** @type {Input} */
radio
);
};
/**
* @param {Input | HTMLElement} checkboxContainer
* @param {SweetAlertOptions} params
* @returns {Input}
*/
renderInputType.checkbox = function (checkboxContainer, params) {
var popup = getPopup();
if (!popup) {
throw new Error('Popup not found');
}
var checkbox = getInput$1(popup, 'checkbox');
if (!checkbox) {
throw new Error('Checkbox input not found');
}
checkbox.value = '1';
checkbox.checked = Boolean(params.inputValue);
var containerElement =
/** @type {HTMLElement} */
checkboxContainer;
var label = containerElement.querySelector('span');
if (label) {
var placeholderOrLabel = params.inputPlaceholder || params.inputLabel;
if (placeholderOrLabel) {
setInnerHtml(label, placeholderOrLabel);
}
}
return checkbox;
};
/**
* @param {Input | HTMLElement} textarea
* @param {SweetAlertOptions} params
* @returns {Input}
*/
renderInputType.textarea = function (textarea, params) {
var textareaElement =
/** @type {HTMLTextAreaElement} */
textarea;
checkAndSetInputValue(textareaElement, params.inputValue);
setInputPlaceholder(textareaElement, params);
setInputLabel(textareaElement, textareaElement, params);
/**
* @param {HTMLElement} el
* @returns {number}
*/
var getMargin = function getMargin(el) {
return parseInt(window.getComputedStyle(el).marginLeft) + parseInt(window.getComputedStyle(el).marginRight);
}; // https://github.com/sweetalert2/sweetalert2/issues/2291
setTimeout(function () {
// https://github.com/sweetalert2/sweetalert2/issues/1699
if ('MutationObserver' in window) {
var popup = getPopup();
if (!popup) {
return;
}
var initialPopupWidth = parseInt(window.getComputedStyle(popup).width);
var textareaResizeHandler = function textareaResizeHandler() {
// check if texarea is still in document (i.e. popup wasn't closed in the meantime)
if (!document.body.contains(textareaElement)) {
return;
}
var textareaWidth = textareaElement.offsetWidth + getMargin(textareaElement);
var popupElement = getPopup();
if (popupElement) {
if (textareaWidth > initialPopupWidth) {
popupElement.style.width = "".concat(textareaWidth, "px");
} else {
applyNumericalStyle(popupElement, 'width', params.width);
}
}
};
new MutationObserver(textareaResizeHandler).observe(textareaElement, {
attributes: true,
attributeFilter: ['style']
});
}
});
return textareaElement;
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderContent = function renderContent(instance, params) {
var htmlContainer = getHtmlContainer();
if (!htmlContainer) {
return;
}
showWhenInnerHtmlPresent(htmlContainer);
applyCustomClass(htmlContainer, params, 'htmlContainer'); // Content as HTML
if (params.html) {
parseHtmlToContainer(params.html, htmlContainer);
show(htmlContainer, 'block');
} // Content as plain text
else if (params.text) {
htmlContainer.textContent = params.text;
show(htmlContainer, 'block');
} // No content
else {
hide(htmlContainer);
}
renderInput(instance, params);
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderFooter = function renderFooter(instance, params) {
var footer = getFooter();
if (!footer) {
return;
}
showWhenInnerHtmlPresent(footer);
toggle(footer, Boolean(params.footer), 'block');
if (params.footer) {
parseHtmlToContainer(params.footer, footer);
} // Custom class
applyCustomClass(footer, params, 'footer');
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderIcon = function renderIcon(instance, params) {
var innerParams = privateProps.innerParams.get(instance);
var icon = getIcon();
if (!icon) {
return;
} // if the given icon already rendered, apply the styling without re-rendering the icon
if (innerParams && params.icon === innerParams.icon) {
// Custom or default content
setContent(icon, params);
applyStyles(icon, params);
return;
}
if (!params.icon && !params.iconHtml) {
hide(icon);
return;
}
if (params.icon && Object.keys(iconTypes).indexOf(params.icon) === -1) {
error("Unknown icon! Expected \"success\", \"error\", \"warning\", \"info\" or \"question\", got \"".concat(params.icon, "\""));
hide(icon);
return;
}
show(icon); // Custom or default content
setContent(icon, params);
applyStyles(icon, params); // Animate icon
addClass(icon, params.showClass && params.showClass.icon); // Re-adjust the success icon on system theme change
var colorSchemeQueryList = window.matchMedia('(prefers-color-scheme: dark)');
colorSchemeQueryList.addEventListener('change', adjustSuccessIconBackgroundColor);
};
/**
* @param {HTMLElement} icon
* @param {SweetAlertOptions} params
*/
var applyStyles = function applyStyles(icon, params) {
for (var _i6 = 0, _Object$entries = Object.entries(iconTypes); _i6 < _Object$entries.length; _i6++) {
var _Object$entries$_i = _slicedToArray(_Object$entries[_i6], 2),
iconType = _Object$entries$_i[0],
iconClassName = _Object$entries$_i[1];
if (params.icon !== iconType) {
removeClass(icon, iconClassName);
}
}
addClass(icon, params.icon && iconTypes[params.icon]); // Icon color
setColor(icon, params); // Success icon background color
adjustSuccessIconBackgroundColor(); // Custom class
applyCustomClass(icon, params, 'icon');
}; // Adjust success icon background color to match the popup background color
var adjustSuccessIconBackgroundColor = function adjustSuccessIconBackgroundColor() {
var popup = getPopup();
if (!popup) {
return;
}
var popupBackgroundColor = window.getComputedStyle(popup).getPropertyValue('background-color');
/** @type {NodeListOf} */
var successIconParts = popup.querySelectorAll('[class^=swal2-success-circular-line], .swal2-success-fix');
for (var i = 0; i < successIconParts.length; i++) {
successIconParts[i].style.backgroundColor = popupBackgroundColor;
}
};
/**
*
* @param {SweetAlertOptions} params
* @returns {string}
*/
var successIconHtml = function successIconHtml(params) {
return "\n ".concat(params.animation ? '
' : '', "\n \n
\n ").concat(params.animation ? '
' : '', "\n ").concat(params.animation ? '
' : '', "\n");
};
var errorIconHtml = "\n \n \n \n \n";
/**
* @param {HTMLElement} icon
* @param {SweetAlertOptions} params
*/
var setContent = function setContent(icon, params) {
if (!params.icon && !params.iconHtml) {
return;
}
var oldContent = icon.innerHTML;
var newContent = '';
if (params.iconHtml) {
newContent = iconContent(params.iconHtml);
} else if (params.icon === 'success') {
newContent = successIconHtml(params);
oldContent = oldContent.replace(/ style=".*?"/g, ''); // undo adjustSuccessIconBackgroundColor()
} else if (params.icon === 'error') {
newContent = errorIconHtml;
} else if (params.icon) {
var defaultIconHtml = {
question: '?',
warning: '!',
info: 'i'
};
newContent = iconContent(defaultIconHtml[params.icon]);
}
if (oldContent.trim() !== newContent.trim()) {
setInnerHtml(icon, newContent);
}
};
/**
* @param {HTMLElement} icon
* @param {SweetAlertOptions} params
*/
var setColor = function setColor(icon, params) {
if (!params.iconColor) {
return;
}
icon.style.color = params.iconColor;
icon.style.borderColor = params.iconColor;
for (var _i7 = 0, _arr2 = ['.swal2-success-line-tip', '.swal2-success-line-long', '.swal2-x-mark-line-left', '.swal2-x-mark-line-right']; _i7 < _arr2.length; _i7++) {
var sel = _arr2[_i7];
setStyle(icon, sel, 'background-color', params.iconColor);
}
setStyle(icon, '.swal2-success-ring', 'border-color', params.iconColor);
};
/**
* @param {string} content
* @returns {string}
*/
var iconContent = function iconContent(content) {
return "").concat(content, "
");
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderImage = function renderImage(instance, params) {
var image = getImage();
if (!image) {
return;
}
if (!params.imageUrl) {
hide(image);
return;
}
show(image, ''); // Src, alt
image.setAttribute('src', params.imageUrl);
image.setAttribute('alt', params.imageAlt || ''); // Width, height
applyNumericalStyle(image, 'width', params.imageWidth);
applyNumericalStyle(image, 'height', params.imageHeight); // Class
image.className = swalClasses.image;
applyCustomClass(image, params, 'image');
};
var dragging = false;
var mousedownX = 0;
var mousedownY = 0;
var initialX = 0;
var initialY = 0;
/**
* @param {HTMLElement} popup
*/
var addDraggableListeners = function addDraggableListeners(popup) {
popup.addEventListener('mousedown', down);
document.body.addEventListener('mousemove', move);
popup.addEventListener('mouseup', up);
popup.addEventListener('touchstart', down);
document.body.addEventListener('touchmove', move);
popup.addEventListener('touchend', up);
};
/**
* @param {HTMLElement} popup
*/
var removeDraggableListeners = function removeDraggableListeners(popup) {
popup.removeEventListener('mousedown', down);
document.body.removeEventListener('mousemove', move);
popup.removeEventListener('mouseup', up);
popup.removeEventListener('touchstart', down);
document.body.removeEventListener('touchmove', move);
popup.removeEventListener('touchend', up);
};
/**
* @param {MouseEvent | TouchEvent} event
*/
var down = function down(event) {
var popup = getPopup();
if (!popup) {
return;
}
var icon = getIcon();
if (event.target === popup || icon && icon.contains(
/** @type {HTMLElement} */
event.target)) {
dragging = true;
var clientXY = getClientXY(event);
mousedownX = clientXY.clientX;
mousedownY = clientXY.clientY;
initialX = parseInt(popup.style.insetInlineStart) || 0;
initialY = parseInt(popup.style.insetBlockStart) || 0;
addClass(popup, 'swal2-dragging');
}
};
/**
* @param {MouseEvent | TouchEvent} event
*/
var move = function move(event) {
var popup = getPopup();
if (!popup) {
return;
}
if (dragging) {
var _getClientXY = getClientXY(event),
clientX = _getClientXY.clientX,
clientY = _getClientXY.clientY;
var deltaX = clientX - mousedownX; // In RTL mode, negate the horizontal delta since insetInlineStart refers to the right edge
popup.style.insetInlineStart = "".concat(initialX + (globalState.isRTL ? -deltaX : deltaX), "px");
popup.style.insetBlockStart = "".concat(initialY + (clientY - mousedownY), "px");
}
};
var up = function up() {
var popup = getPopup();
dragging = false;
removeClass(popup, 'swal2-dragging');
};
/**
* @param {MouseEvent | TouchEvent} event
* @returns {{ clientX: number, clientY: number }}
*/
var getClientXY = function getClientXY(event) {
var clientX = 0,
clientY = 0;
if (event.type.startsWith('mouse')) {
clientX =
/** @type {MouseEvent} */
event.clientX;
clientY =
/** @type {MouseEvent} */
event.clientY;
} else if (event.type.startsWith('touch')) {
clientX =
/** @type {TouchEvent} */
event.touches[0].clientX;
clientY =
/** @type {TouchEvent} */
event.touches[0].clientY;
}
return {
clientX: clientX,
clientY: clientY
};
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderPopup = function renderPopup(instance, params) {
var container = getContainer();
var popup = getPopup();
if (!container || !popup) {
return;
} // Width
// https://github.com/sweetalert2/sweetalert2/issues/2170
if (params.toast) {
applyNumericalStyle(container, 'width', params.width);
popup.style.width = '100%';
var loader = getLoader();
if (loader) {
popup.insertBefore(loader, getIcon());
}
} else {
applyNumericalStyle(popup, 'width', params.width);
} // Padding
applyNumericalStyle(popup, 'padding', params.padding); // Color
if (params.color) {
popup.style.color = params.color;
} // Background
if (params.background) {
popup.style.background = params.background;
}
hide(getValidationMessage()); // Classes
addClasses$1(popup, params);
if (params.draggable && !params.toast) {
addClass(popup, swalClasses.draggable);
addDraggableListeners(popup);
} else {
removeClass(popup, swalClasses.draggable);
removeDraggableListeners(popup);
}
};
/**
* @param {HTMLElement} popup
* @param {SweetAlertOptions} params
*/
var addClasses$1 = function addClasses$1(popup, params) {
var showClass = params.showClass || {}; // Default Class + showClass when updating Swal.update({})
popup.className = "".concat(swalClasses.popup, " ").concat(isVisible$1(popup) ? showClass.popup : '');
if (params.toast) {
addClass([document.documentElement, document.body], swalClasses['toast-shown']);
addClass(popup, swalClasses.toast);
} else {
addClass(popup, swalClasses.modal);
} // Custom class
applyCustomClass(popup, params, 'popup'); // TODO: remove in the next major
if (typeof params.customClass === 'string') {
addClass(popup, params.customClass);
} // Icon class (#1842)
if (params.icon) {
addClass(popup, swalClasses["icon-".concat(params.icon)]);
}
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderProgressSteps = function renderProgressSteps(instance, params) {
var progressStepsContainer = getProgressSteps();
if (!progressStepsContainer) {
return;
}
var progressSteps = params.progressSteps,
currentProgressStep = params.currentProgressStep;
if (!progressSteps || progressSteps.length === 0 || currentProgressStep === undefined) {
hide(progressStepsContainer);
return;
}
show(progressStepsContainer);
progressStepsContainer.textContent = '';
if (currentProgressStep >= progressSteps.length) {
warn('Invalid currentProgressStep parameter, it should be less than progressSteps.length ' + '(currentProgressStep like JS arrays starts from 0)');
}
progressSteps.forEach(function (step, index) {
var stepEl = createStepElement(step);
progressStepsContainer.appendChild(stepEl);
if (index === currentProgressStep) {
addClass(stepEl, swalClasses['active-progress-step']);
}
if (index !== progressSteps.length - 1) {
var lineEl = createLineElement(params);
progressStepsContainer.appendChild(lineEl);
}
});
};
/**
* @param {string} step
* @returns {HTMLLIElement}
*/
var createStepElement = function createStepElement(step) {
var stepEl = document.createElement('li');
addClass(stepEl, swalClasses['progress-step']);
setInnerHtml(stepEl, step);
return stepEl;
};
/**
* @param {SweetAlertOptions} params
* @returns {HTMLLIElement}
*/
var createLineElement = function createLineElement(params) {
var lineEl = document.createElement('li');
addClass(lineEl, swalClasses['progress-step-line']);
if (params.progressStepsDistance) {
applyNumericalStyle(lineEl, 'width', params.progressStepsDistance);
}
return lineEl;
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var renderTitle = function renderTitle(instance, params) {
var title = getTitle();
if (!title) {
return;
}
showWhenInnerHtmlPresent(title);
toggle(title, Boolean(params.title || params.titleText), 'block');
if (params.title) {
parseHtmlToContainer(params.title, title);
}
if (params.titleText) {
title.innerText = params.titleText;
} // Custom class
applyCustomClass(title, params, 'title');
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var render = function render(instance, params) {
var _globalState$eventEmi;
renderPopup(instance, params);
renderContainer(instance, params);
renderProgressSteps(instance, params);
renderIcon(instance, params);
renderImage(instance, params);
renderTitle(instance, params);
renderCloseButton(instance, params);
renderContent(instance, params);
renderActions(instance, params);
renderFooter(instance, params);
var popup = getPopup();
if (typeof params.didRender === 'function' && popup) {
params.didRender(popup);
}
(_globalState$eventEmi = globalState.eventEmitter) === null || _globalState$eventEmi === void 0 || _globalState$eventEmi.emit('didRender', popup);
};
/*
* Global function to determine if SweetAlert2 popup is shown
*/
var isVisible = function isVisible() {
return isVisible$1(getPopup());
};
/*
* Global function to click 'Confirm' button
*/
var clickConfirm = function clickConfirm() {
var _dom$getConfirmButton;
return (_dom$getConfirmButton = getConfirmButton()) === null || _dom$getConfirmButton === void 0 ? void 0 : _dom$getConfirmButton.click();
};
/*
* Global function to click 'Deny' button
*/
var clickDeny = function clickDeny() {
var _dom$getDenyButton;
return (_dom$getDenyButton = getDenyButton()) === null || _dom$getDenyButton === void 0 ? void 0 : _dom$getDenyButton.click();
};
/*
* Global function to click 'Cancel' button
*/
var clickCancel = function clickCancel() {
var _dom$getCancelButton;
return (_dom$getCancelButton = getCancelButton()) === null || _dom$getCancelButton === void 0 ? void 0 : _dom$getCancelButton.click();
};
/** @type {Record} */
var DismissReason = Object.freeze({
cancel: 'cancel',
backdrop: 'backdrop',
close: 'close',
esc: 'esc',
timer: 'timer'
});
/**
* @param {GlobalState} globalState
*/
var removeKeydownHandler = function removeKeydownHandler(globalState) {
if (globalState.keydownTarget && globalState.keydownHandlerAdded && globalState.keydownHandler) {
var handler =
/** @type {EventListenerOrEventListenerObject} */
/** @type {unknown} */
globalState.keydownHandler;
globalState.keydownTarget.removeEventListener('keydown', handler, {
capture: globalState.keydownListenerCapture
});
globalState.keydownHandlerAdded = false;
}
};
/**
* @param {GlobalState} globalState
* @param {SweetAlertOptions} innerParams
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var addKeydownHandler = function addKeydownHandler(globalState, innerParams, dismissWith) {
removeKeydownHandler(globalState);
if (!innerParams.toast) {
/** @type {(this: HTMLElement, event: KeyboardEvent) => void} */
var handler = function handler(e) {
return keydownHandler(innerParams, e, dismissWith);
};
globalState.keydownHandler = handler;
var target = innerParams.keydownListenerCapture ? window : getPopup();
if (target) {
globalState.keydownTarget = target;
globalState.keydownListenerCapture = innerParams.keydownListenerCapture;
var eventHandler =
/** @type {EventListenerOrEventListenerObject} */
/** @type {unknown} */
handler;
globalState.keydownTarget.addEventListener('keydown', eventHandler, {
capture: globalState.keydownListenerCapture
});
globalState.keydownHandlerAdded = true;
}
}
};
/**
* @param {number} index
* @param {number} increment
*/
var setFocus = function setFocus(index, increment) {
var _dom$getPopup;
var focusableElements = getFocusableElements(); // search for visible elements and select the next possible match
if (focusableElements.length) {
index = index + increment; // shift + tab when .swal2-popup is focused
if (index === -2) {
index = focusableElements.length - 1;
} // rollover to first item
if (index === focusableElements.length) {
index = 0; // go to last item
} else if (index === -1) {
index = focusableElements.length - 1;
}
focusableElements[index].focus();
return;
} // no visible focusable elements, focus the popup
(_dom$getPopup = getPopup()) === null || _dom$getPopup === void 0 || _dom$getPopup.focus();
};
var arrowKeysNextButton = ['ArrowRight', 'ArrowDown'];
var arrowKeysPreviousButton = ['ArrowLeft', 'ArrowUp'];
/**
* @param {SweetAlertOptions} innerParams
* @param {KeyboardEvent} event
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var keydownHandler = function keydownHandler(innerParams, event, dismissWith) {
if (!innerParams) {
return; // This instance has already been destroyed
} // Ignore keydown during IME composition
// https://developer.mozilla.org/en-US/docs/Web/API/Document/keydown_event#ignoring_keydown_during_ime_composition
// https://github.com/sweetalert2/sweetalert2/issues/720
// https://github.com/sweetalert2/sweetalert2/issues/2406
if (event.isComposing || event.keyCode === 229) {
return;
}
if (innerParams.stopKeydownPropagation) {
event.stopPropagation();
} // ENTER
if (event.key === 'Enter') {
handleEnter(event, innerParams);
} // TAB
else if (event.key === 'Tab') {
handleTab(event);
} // ARROWS - switch focus between buttons
else if ([].concat(arrowKeysNextButton, arrowKeysPreviousButton).includes(event.key)) {
handleArrows(event.key);
} // ESC
else if (event.key === 'Escape') {
handleEsc(event, innerParams, dismissWith);
}
};
/**
* @param {KeyboardEvent} event
* @param {SweetAlertOptions} innerParams
*/
var handleEnter = function handleEnter(event, innerParams) {
// https://github.com/sweetalert2/sweetalert2/issues/2386
if (!callIfFunction(innerParams.allowEnterKey)) {
return;
}
var popup = getPopup();
if (!popup || !innerParams.input) {
return;
}
var input = getInput$1(popup, innerParams.input);
if (event.target && input && event.target instanceof HTMLElement && event.target.outerHTML === input.outerHTML) {
if (['textarea', 'file'].includes(innerParams.input)) {
return; // do not submit
}
clickConfirm();
event.preventDefault();
}
};
/**
* @param {KeyboardEvent} event
*/
var handleTab = function handleTab(event) {
var targetElement = event.target;
var focusableElements = getFocusableElements();
var btnIndex = -1;
for (var i = 0; i < focusableElements.length; i++) {
if (targetElement === focusableElements[i]) {
btnIndex = i;
break;
}
} // Cycle to the next button
if (!event.shiftKey) {
setFocus(btnIndex, 1);
} // Cycle to the prev button
else {
setFocus(btnIndex, -1);
}
event.stopPropagation();
event.preventDefault();
};
/**
* @param {string} key
*/
var handleArrows = function handleArrows(key) {
var actions = getActions();
var confirmButton = getConfirmButton();
var denyButton = getDenyButton();
var cancelButton = getCancelButton();
if (!actions || !confirmButton || !denyButton || !cancelButton) {
return;
}
/** @type HTMLElement[] */
var buttons = [confirmButton, denyButton, cancelButton];
if (document.activeElement instanceof HTMLElement && !buttons.includes(document.activeElement)) {
return;
}
var sibling = arrowKeysNextButton.includes(key) ? 'nextElementSibling' : 'previousElementSibling';
var buttonToFocus = document.activeElement;
if (!buttonToFocus) {
return;
}
for (var i = 0; i < actions.children.length; i++) {
buttonToFocus = buttonToFocus[sibling];
if (!buttonToFocus) {
return;
}
if (buttonToFocus instanceof HTMLButtonElement && isVisible$1(buttonToFocus)) {
break;
}
}
if (buttonToFocus instanceof HTMLButtonElement) {
buttonToFocus.focus();
}
};
/**
* @param {KeyboardEvent} event
* @param {SweetAlertOptions} innerParams
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var handleEsc = function handleEsc(event, innerParams, dismissWith) {
event.preventDefault();
if (callIfFunction(innerParams.allowEscapeKey)) {
dismissWith(DismissReason.esc);
}
};
/**
* This module contains `WeakMap`s for each effectively-"private property" that a `Swal` has.
* For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
* This is the approach that Babel will probably take to implement private methods/fields
* https://github.com/tc39/proposal-private-methods
* https://github.com/babel/babel/pull/7555
* Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
* then we can use that language feature.
*/
var privateMethods = {
swalPromiseResolve: new WeakMap(),
swalPromiseReject: new WeakMap()
}; // From https://developer.paciellogroup.com/blog/2018/06/the-current-state-of-modal-dialog-accessibility/
// Adding aria-hidden="true" to elements outside of the active modal dialog ensures that
// elements not within the active modal dialog will not be surfaced if a user opens a screen
// reader’s list of elements (headings, form controls, landmarks, etc.) in the document.
var setAriaHidden = function setAriaHidden() {
var container = getContainer();
var bodyChildren = Array.from(document.body.children);
bodyChildren.forEach(function (el) {
if (el.contains(container)) {
return;
}
if (el.hasAttribute('aria-hidden')) {
el.setAttribute('data-previous-aria-hidden', el.getAttribute('aria-hidden') || '');
}
el.setAttribute('aria-hidden', 'true');
});
};
var unsetAriaHidden = function unsetAriaHidden() {
var bodyChildren = Array.from(document.body.children);
bodyChildren.forEach(function (el) {
if (el.hasAttribute('data-previous-aria-hidden')) {
el.setAttribute('aria-hidden', el.getAttribute('data-previous-aria-hidden') || '');
el.removeAttribute('data-previous-aria-hidden');
} else {
el.removeAttribute('aria-hidden');
}
});
}; // @ts-ignore
var isSafariOrIOS = typeof window !== 'undefined' && Boolean(window.GestureEvent); // true for Safari desktop + all iOS browsers https://stackoverflow.com/a/70585394
/**
* Fix iOS scrolling
* http://stackoverflow.com/q/39626302
*/
var iOSfix = function iOSfix() {
if (isSafariOrIOS && !hasClass(document.body, swalClasses.iosfix)) {
var offset = document.body.scrollTop;
document.body.style.top = "".concat(offset * -1, "px");
addClass(document.body, swalClasses.iosfix);
lockBodyScroll();
}
};
/**
* https://github.com/sweetalert2/sweetalert2/issues/1246
*/
var lockBodyScroll = function lockBodyScroll() {
var container = getContainer();
if (!container) {
return;
}
/** @type {boolean} */
var preventTouchMove;
/**
* @param {TouchEvent} event
*/
container.ontouchstart = function (event) {
preventTouchMove = shouldPreventTouchMove(event);
};
/**
* @param {TouchEvent} event
*/
container.ontouchmove = function (event) {
if (preventTouchMove) {
event.preventDefault();
event.stopPropagation();
}
};
};
/**
* @param {TouchEvent} event
* @returns {boolean}
*/
var shouldPreventTouchMove = function shouldPreventTouchMove(event) {
var target = event.target;
var container = getContainer();
var htmlContainer = getHtmlContainer();
if (!container || !htmlContainer) {
return false;
}
if (isStylus(event) || isZoom(event)) {
return false;
}
if (target === container) {
return true;
}
if (!isScrollable(container) && target instanceof HTMLElement && !selfOrParentIsScrollable(target, htmlContainer) && // #2823
target.tagName !== 'INPUT' && // #1603
target.tagName !== 'TEXTAREA' && // #2266
!(isScrollable(htmlContainer) && // #1944
htmlContainer.contains(target))) {
return true;
}
return false;
};
/**
* https://github.com/sweetalert2/sweetalert2/issues/1786
*
* @param {TouchEvent} event
* @returns {boolean}
*/
var isStylus = function isStylus(event) {
return Boolean(event.touches && event.touches.length && // @ts-ignore - touchType is not a standard property
event.touches[0].touchType === 'stylus');
};
/**
* https://github.com/sweetalert2/sweetalert2/issues/1891
*
* @param {TouchEvent} event
* @returns {boolean}
*/
var isZoom = function isZoom(event) {
return event.touches && event.touches.length > 1;
};
var undoIOSfix = function undoIOSfix() {
if (hasClass(document.body, swalClasses.iosfix)) {
var offset = parseInt(document.body.style.top, 10);
removeClass(document.body, swalClasses.iosfix);
document.body.style.top = '';
document.body.scrollTop = offset * -1;
}
};
/**
* Measure scrollbar width for padding body during modal show/hide
* https://github.com/twbs/bootstrap/blob/master/js/src/modal.js
*
* @returns {number}
*/
var measureScrollbar = function measureScrollbar() {
var scrollDiv = document.createElement('div');
scrollDiv.className = swalClasses['scrollbar-measure'];
document.body.appendChild(scrollDiv);
var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
document.body.removeChild(scrollDiv);
return scrollbarWidth;
};
/**
* Remember state in cases where opening and handling a modal will fiddle with it.
* @type {number | null}
*/
var previousBodyPadding = null;
/**
* @param {string} initialBodyOverflow
*/
var replaceScrollbarWithPadding = function replaceScrollbarWithPadding(initialBodyOverflow) {
// for queues, do not do this more than once
if (previousBodyPadding !== null) {
return;
} // if the body has overflow
if (document.body.scrollHeight > window.innerHeight || initialBodyOverflow === 'scroll' // https://github.com/sweetalert2/sweetalert2/issues/2663
) {
// add padding so the content doesn't shift after removal of scrollbar
previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue('padding-right'));
document.body.style.paddingRight = "".concat(previousBodyPadding + measureScrollbar(), "px");
}
};
var undoReplaceScrollbarWithPadding = function undoReplaceScrollbarWithPadding() {
if (previousBodyPadding !== null) {
document.body.style.paddingRight = "".concat(previousBodyPadding, "px");
previousBodyPadding = null;
}
};
/**
* @param {SweetAlert} instance
* @param {HTMLElement} container
* @param {boolean} returnFocus
* @param {(() => void) | undefined} didClose
*/
function removePopupAndResetState(instance, container, returnFocus, didClose) {
if (isToast()) {
triggerDidCloseAndDispose(instance, didClose);
} else {
restoreActiveElement(returnFocus).then(function () {
return triggerDidCloseAndDispose(instance, didClose);
});
removeKeydownHandler(globalState);
} // workaround for https://github.com/sweetalert2/sweetalert2/issues/2088
// for some reason removing the container in Safari will scroll the document to bottom
if (isSafariOrIOS) {
container.setAttribute('style', 'display:none !important');
container.removeAttribute('class');
container.innerHTML = '';
} else {
container.remove();
}
if (isModal()) {
undoReplaceScrollbarWithPadding();
undoIOSfix();
unsetAriaHidden();
}
removeBodyClasses();
}
/**
* Remove SweetAlert2 classes from body
*/
function removeBodyClasses() {
removeClass([document.documentElement, document.body], [swalClasses.shown, swalClasses['height-auto'], swalClasses['no-backdrop'], swalClasses['toast-shown']]);
}
/**
* Instance method to close sweetAlert
*
* @param {SweetAlertResult | undefined} resolveValue
* @this {SweetAlert}
*/
function close(resolveValue) {
resolveValue = prepareResolveValue(resolveValue);
var swalPromiseResolve = privateMethods.swalPromiseResolve.get(this);
var didClose = triggerClosePopup(this);
if (this.isAwaitingPromise) {
// A swal awaiting for a promise (after a click on Confirm or Deny) cannot be dismissed anymore #2335
if (!resolveValue.isDismissed) {
handleAwaitingPromise(this);
swalPromiseResolve(resolveValue);
}
} else if (didClose) {
// Resolve Swal promise
swalPromiseResolve(resolveValue);
}
}
/**
* @param {SweetAlert} instance
* @returns {boolean}
*/
var triggerClosePopup = function triggerClosePopup(instance) {
var popup = getPopup();
if (!popup) {
return false;
}
var innerParams = privateProps.innerParams.get(instance);
if (!innerParams || hasClass(popup, innerParams.hideClass.popup)) {
return false;
}
removeClass(popup, innerParams.showClass.popup);
addClass(popup, innerParams.hideClass.popup);
var backdrop = getContainer();
removeClass(backdrop, innerParams.showClass.backdrop);
addClass(backdrop, innerParams.hideClass.backdrop);
handlePopupAnimation(instance, popup, innerParams);
return true;
};
/**
* @param {Error | string} error
* @this {SweetAlert}
*/
function rejectPromise(error) {
var rejectPromise = privateMethods.swalPromiseReject.get(this);
handleAwaitingPromise(this);
if (rejectPromise) {
// Reject Swal promise
rejectPromise(error);
}
}
/**
* @param {SweetAlert} instance
*/
var handleAwaitingPromise = function handleAwaitingPromise(instance) {
if (instance.isAwaitingPromise) {
// @ts-ignore
delete instance.isAwaitingPromise; // The instance might have been previously partly destroyed, we must resume the destroy process in this case #2335
if (!privateProps.innerParams.get(instance)) {
instance._destroy();
}
}
};
/**
* @param {SweetAlertResult | undefined} resolveValue
* @returns {SweetAlertResult}
*/
var prepareResolveValue = function prepareResolveValue(resolveValue) {
// When user calls Swal.close()
if (typeof resolveValue === 'undefined') {
return {
isConfirmed: false,
isDenied: false,
isDismissed: true
};
}
return Object.assign({
isConfirmed: false,
isDenied: false,
isDismissed: false
}, resolveValue);
};
/**
* @param {SweetAlert} instance
* @param {HTMLElement} popup
* @param {SweetAlertOptions} innerParams
*/
var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {
var _globalState$eventEmi;
var container = getContainer(); // If animation is supported, animate
var animationIsSupported = hasCssAnimation(popup);
if (typeof innerParams.willClose === 'function') {
innerParams.willClose(popup);
}
(_globalState$eventEmi = globalState.eventEmitter) === null || _globalState$eventEmi === void 0 || _globalState$eventEmi.emit('willClose', popup);
if (animationIsSupported && container) {
animatePopup(instance, popup, container, Boolean(innerParams.returnFocus), innerParams.didClose);
} else if (container) {
// Otherwise, remove immediately
removePopupAndResetState(instance, container, Boolean(innerParams.returnFocus), innerParams.didClose);
}
};
/**
* @param {SweetAlert} instance
* @param {HTMLElement} popup
* @param {HTMLElement} container
* @param {boolean} returnFocus
* @param {(() => void) | undefined} didClose
*/
var animatePopup = function animatePopup(instance, popup, container, returnFocus, didClose) {
globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, returnFocus, didClose);
/**
* @param {AnimationEvent | TransitionEvent} e
*/
var _swalCloseAnimationFinished = function swalCloseAnimationFinished(e) {
if (e.target === popup) {
var _globalState$swalClos;
(_globalState$swalClos = globalState.swalCloseEventFinishedCallback) === null || _globalState$swalClos === void 0 || _globalState$swalClos.call(globalState);
delete globalState.swalCloseEventFinishedCallback;
popup.removeEventListener('animationend', _swalCloseAnimationFinished);
popup.removeEventListener('transitionend', _swalCloseAnimationFinished);
}
};
popup.addEventListener('animationend', _swalCloseAnimationFinished);
popup.addEventListener('transitionend', _swalCloseAnimationFinished);
};
/**
* @param {SweetAlert} instance
* @param {(() => void) | undefined} didClose
*/
var triggerDidCloseAndDispose = function triggerDidCloseAndDispose(instance, didClose) {
setTimeout(function () {
var _globalState$eventEmi2;
if (typeof didClose === 'function') {
didClose.bind(instance.params)();
}
(_globalState$eventEmi2 = globalState.eventEmitter) === null || _globalState$eventEmi2 === void 0 || _globalState$eventEmi2.emit('didClose'); // instance might have been destroyed already
if (instance._destroy) {
instance._destroy();
}
});
};
/**
* Shows loader (spinner), this is useful with AJAX requests.
* By default the loader be shown instead of the "Confirm" button.
*
* @param {HTMLButtonElement | null} [buttonToReplace]
*/
var showLoading = function showLoading(buttonToReplace) {
var popup = getPopup();
if (!popup) {
new Swal();
}
popup = getPopup();
if (!popup) {
return;
}
var loader = getLoader();
if (isToast()) {
hide(getIcon());
} else {
replaceButton(popup, buttonToReplace);
}
show(loader);
popup.setAttribute('data-loading', 'true');
popup.setAttribute('aria-busy', 'true');
popup.focus();
};
/**
* @param {HTMLElement} popup
* @param {HTMLButtonElement | null} [buttonToReplace]
*/
var replaceButton = function replaceButton(popup, buttonToReplace) {
var actions = getActions();
var loader = getLoader();
if (!actions || !loader) {
return;
}
if (!buttonToReplace && isVisible$1(getConfirmButton())) {
buttonToReplace = getConfirmButton();
}
show(actions);
if (buttonToReplace) {
hide(buttonToReplace);
loader.setAttribute('data-button-to-replace', buttonToReplace.className);
actions.insertBefore(loader, buttonToReplace);
}
addClass([popup, actions], swalClasses.loading);
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var handleInputOptionsAndValue = function handleInputOptionsAndValue(instance, params) {
if (params.input === 'select' || params.input === 'radio') {
handleInputOptions(instance, params);
} else if (['text', 'email', 'number', 'tel', 'textarea'].some(function (i) {
return i === params.input;
}) && (hasToPromiseFn(params.inputValue) || isPromise(params.inputValue))) {
showLoading(getConfirmButton());
handleInputValue(instance, params);
}
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} innerParams
* @returns {SweetAlertInputValue}
*/
var getInputValue = function getInputValue(instance, innerParams) {
var input = instance.getInput();
if (!input) {
return null;
}
switch (innerParams.input) {
case 'checkbox':
return getCheckboxValue(input);
case 'radio':
return getRadioValue(input);
case 'file':
return getFileValue(input);
default:
return innerParams.inputAutoTrim ? input.value.trim() : input.value;
}
};
/**
* @param {HTMLInputElement} input
* @returns {number}
*/
var getCheckboxValue = function getCheckboxValue(input) {
return input.checked ? 1 : 0;
};
/**
* @param {HTMLInputElement} input
* @returns {string | null}
*/
var getRadioValue = function getRadioValue(input) {
return input.checked ? input.value : null;
};
/**
* @param {HTMLInputElement} input
* @returns {FileList | File | null}
*/
var getFileValue = function getFileValue(input) {
return input.files && input.files.length ? input.getAttribute('multiple') !== null ? input.files : input.files[0] : null;
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var handleInputOptions = function handleInputOptions(instance, params) {
var popup = getPopup();
if (!popup) {
return;
}
/**
* @param {*} inputOptions
*/
var processInputOptions = function processInputOptions(inputOptions) {
if (params.input === 'select') {
populateSelectOptions(popup, _formatInputOptions(inputOptions), params);
} else if (params.input === 'radio') {
populateRadioOptions(popup, _formatInputOptions(inputOptions), params);
}
};
if (hasToPromiseFn(params.inputOptions) || isPromise(params.inputOptions)) {
showLoading(getConfirmButton());
asPromise(params.inputOptions).then(function (inputOptions) {
instance.hideLoading();
processInputOptions(inputOptions);
});
} else if (typeof params.inputOptions === 'object') {
processInputOptions(params.inputOptions);
} else {
error("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof params.inputOptions));
}
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
var handleInputValue = function handleInputValue(instance, params) {
var input = instance.getInput();
if (!input) {
return;
}
hide(input);
asPromise(params.inputValue).then(function (inputValue) {
input.value = params.input === 'number' ? "".concat(parseFloat(inputValue) || 0) : "".concat(inputValue);
show(input);
input.focus();
instance.hideLoading();
})["catch"](function (err) {
error("Error in inputValue promise: ".concat(err));
input.value = '';
show(input);
input.focus();
instance.hideLoading();
});
};
/**
* @param {HTMLElement} popup
* @param {InputOptionFlattened[]} inputOptions
* @param {SweetAlertOptions} params
*/
function populateSelectOptions(popup, inputOptions, params) {
var select = getDirectChildByClass(popup, swalClasses.select);
if (!select) {
return;
}
/**
* @param {HTMLElement} parent
* @param {string} optionLabel
* @param {string} optionValue
*/
var renderOption = function renderOption(parent, optionLabel, optionValue) {
var option = document.createElement('option');
option.value = optionValue;
setInnerHtml(option, optionLabel);
option.selected = isSelected(optionValue, params.inputValue);
parent.appendChild(option);
};
inputOptions.forEach(function (inputOption) {
var optionValue = inputOption[0];
var optionLabel = inputOption[1]; // spec:
// https://www.w3.org/TR/html401/interact/forms.html#h-17.6
// "...all OPTGROUP elements must be specified directly within a SELECT element (i.e., groups may not be nested)..."
// check whether this is a
if (Array.isArray(optionLabel)) {
// if it is an array, then it is an
var optgroup = document.createElement('optgroup');
optgroup.label = optionValue;
optgroup.disabled = false; // not configurable for now
select.appendChild(optgroup);
optionLabel.forEach(function (o) {
return renderOption(optgroup, o[1], o[0]);
});
} else {
// case of
renderOption(select, optionLabel, optionValue);
}
});
select.focus();
}
/**
* @param {HTMLElement} popup
* @param {InputOptionFlattened[]} inputOptions
* @param {SweetAlertOptions} params
*/
function populateRadioOptions(popup, inputOptions, params) {
var radio = getDirectChildByClass(popup, swalClasses.radio);
if (!radio) {
return;
}
inputOptions.forEach(function (inputOption) {
var radioValue = inputOption[0];
var radioLabel = inputOption[1];
var radioInput = document.createElement('input');
var radioLabelElement = document.createElement('label');
radioInput.type = 'radio';
radioInput.name = swalClasses.radio;
radioInput.value = radioValue;
if (isSelected(radioValue, params.inputValue)) {
radioInput.checked = true;
}
var label = document.createElement('span');
setInnerHtml(label, radioLabel);
label.className = swalClasses.label;
radioLabelElement.appendChild(radioInput);
radioLabelElement.appendChild(label);
radio.appendChild(radioLabelElement);
});
var radios = radio.querySelectorAll('input');
if (radios.length) {
radios[0].focus();
}
}
/**
* Converts `inputOptions` into an array of `[value, label]`s
*
* @param {*} inputOptions
* @typedef {string[]} InputOptionFlattened
* @returns {InputOptionFlattened[]}
*/
var _formatInputOptions = function formatInputOptions(inputOptions) {
/** @type {InputOptionFlattened[]} */
var result = [];
if (inputOptions instanceof Map) {
inputOptions.forEach(function (value, key) {
var valueFormatted = value;
if (typeof valueFormatted === 'object') {
// case of
valueFormatted = _formatInputOptions(valueFormatted);
}
result.push([key, valueFormatted]);
});
} else {
Object.keys(inputOptions).forEach(function (key) {
var valueFormatted = inputOptions[key];
if (typeof valueFormatted === 'object') {
// case of
valueFormatted = _formatInputOptions(valueFormatted);
}
result.push([key, valueFormatted]);
});
}
return result;
};
/**
* @param {string} optionValue
* @param {SweetAlertInputValue} inputValue
* @returns {boolean}
*/
var isSelected = function isSelected(optionValue, inputValue) {
return Boolean(inputValue) && inputValue !== null && inputValue !== undefined && inputValue.toString() === optionValue.toString();
};
/**
* @param {SweetAlert} instance
*/
var handleConfirmButtonClick = function handleConfirmButtonClick(instance) {
var innerParams = privateProps.innerParams.get(instance);
instance.disableButtons();
if (innerParams.input) {
handleConfirmOrDenyWithInput(instance, 'confirm');
} else {
confirm(instance, true);
}
};
/**
* @param {SweetAlert} instance
*/
var handleDenyButtonClick = function handleDenyButtonClick(instance) {
var innerParams = privateProps.innerParams.get(instance);
instance.disableButtons();
if (innerParams.returnInputValueOnDeny) {
handleConfirmOrDenyWithInput(instance, 'deny');
} else {
deny(instance, false);
}
};
/**
* @param {SweetAlert} instance
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {
instance.disableButtons();
dismissWith(DismissReason.cancel);
};
/**
* @param {SweetAlert} instance
* @param {'confirm' | 'deny'} type
*/
var handleConfirmOrDenyWithInput = function handleConfirmOrDenyWithInput(instance, type) {
var innerParams = privateProps.innerParams.get(instance);
if (!innerParams.input) {
error("The \"input\" parameter is needed to be set when using returnInputValueOn".concat(capitalizeFirstLetter(type)));
return;
}
var input = instance.getInput();
var inputValue = getInputValue(instance, innerParams);
if (innerParams.inputValidator) {
handleInputValidator(instance, inputValue, type);
} else if (input && !input.checkValidity()) {
instance.enableButtons();
instance.showValidationMessage(innerParams.validationMessage || input.validationMessage);
} else if (type === 'deny') {
deny(instance, inputValue);
} else {
confirm(instance, inputValue);
}
};
/**
* @param {SweetAlert} instance
* @param {SweetAlertInputValue} inputValue
* @param {'confirm' | 'deny'} type
*/
var handleInputValidator = function handleInputValidator(instance, inputValue, type) {
var innerParams = privateProps.innerParams.get(instance);
instance.disableInput();
var validationPromise = Promise.resolve().then(function () {
return asPromise(innerParams.inputValidator(inputValue, innerParams.validationMessage));
});
validationPromise.then(function (validationMessage) {
instance.enableButtons();
instance.enableInput();
if (validationMessage) {
instance.showValidationMessage(validationMessage);
} else if (type === 'deny') {
deny(instance, inputValue);
} else {
confirm(instance, inputValue);
}
});
};
/**
* @param {SweetAlert} instance
* @param {*} value
*/
var deny = function deny(instance, value) {
var innerParams = privateProps.innerParams.get(instance);
if (innerParams.showLoaderOnDeny) {
showLoading(getDenyButton());
}
if (innerParams.preDeny) {
instance.isAwaitingPromise = true; // Flagging the instance as awaiting a promise so it's own promise's reject/resolve methods doesn't get destroyed until the result from this preDeny's promise is received
var preDenyPromise = Promise.resolve().then(function () {
return asPromise(innerParams.preDeny(value, innerParams.validationMessage));
});
preDenyPromise.then(function (preDenyValue) {
if (preDenyValue === false) {
instance.hideLoading();
handleAwaitingPromise(instance);
} else {
instance.close(
/** @type SweetAlertResult */
{
isDenied: true,
value: typeof preDenyValue === 'undefined' ? value : preDenyValue
});
}
})["catch"](function (error) {
return rejectWith(instance, error);
});
} else {
instance.close(
/** @type SweetAlertResult */
{
isDenied: true,
value: value
});
}
};
/**
* @param {SweetAlert} instance
* @param {*} value
*/
var succeedWith = function succeedWith(instance, value) {
instance.close(
/** @type SweetAlertResult */
{
isConfirmed: true,
value: value
});
};
/**
*
* @param {SweetAlert} instance
* @param {string} error
*/
var rejectWith = function rejectWith(instance, error) {
instance.rejectPromise(error);
};
/**
*
* @param {SweetAlert} instance
* @param {*} value
*/
var confirm = function confirm(instance, value) {
var innerParams = privateProps.innerParams.get(instance);
if (innerParams.showLoaderOnConfirm) {
showLoading();
}
if (innerParams.preConfirm) {
instance.resetValidationMessage();
instance.isAwaitingPromise = true; // Flagging the instance as awaiting a promise so it's own promise's reject/resolve methods doesn't get destroyed until the result from this preConfirm's promise is received
var preConfirmPromise = Promise.resolve().then(function () {
return asPromise(innerParams.preConfirm(value, innerParams.validationMessage));
});
preConfirmPromise.then(function (preConfirmValue) {
if (isVisible$1(getValidationMessage()) || preConfirmValue === false) {
instance.hideLoading();
handleAwaitingPromise(instance);
} else {
succeedWith(instance, typeof preConfirmValue === 'undefined' ? value : preConfirmValue);
}
})["catch"](function (error) {
return rejectWith(instance, error);
});
} else {
succeedWith(instance, value);
}
};
/**
* Hides loader and shows back the button which was hidden by .showLoading()
* @this {SweetAlert}
*/
function hideLoading() {
// do nothing if popup is closed
var innerParams = privateProps.innerParams.get(this);
if (!innerParams) {
return;
}
var domCache = privateProps.domCache.get(this);
hide(domCache.loader);
if (isToast()) {
if (innerParams.icon) {
show(getIcon());
}
} else {
showRelatedButton(domCache);
}
removeClass([domCache.popup, domCache.actions], swalClasses.loading);
domCache.popup.removeAttribute('aria-busy');
domCache.popup.removeAttribute('data-loading');
domCache.confirmButton.disabled = false;
domCache.denyButton.disabled = false;
domCache.cancelButton.disabled = false;
}
/**
* @param {DomCache} domCache
*/
var showRelatedButton = function showRelatedButton(domCache) {
var dataButtonToReplace = domCache.loader.getAttribute('data-button-to-replace');
var buttonToReplace = dataButtonToReplace ? domCache.popup.getElementsByClassName(dataButtonToReplace) : [];
if (buttonToReplace.length) {
show(
/** @type {HTMLElement} */
buttonToReplace[0], 'inline-block');
} else if (allButtonsAreHidden()) {
hide(domCache.actions);
}
};
/**
* Gets the input DOM node, this method works with input parameter.
*
* @returns {HTMLInputElement | null}
* @this {SweetAlert}
*/
function getInput() {
var innerParams = privateProps.innerParams.get(this);
var domCache = privateProps.domCache.get(this);
if (!domCache) {
return null;
}
return getInput$1(domCache.popup, innerParams.input);
}
/**
* @param {SweetAlert} instance
* @param {string[]} buttons
* @param {boolean} disabled
*/
function setButtonsDisabled(instance, buttons, disabled) {
var domCache = privateProps.domCache.get(instance);
buttons.forEach(function (button) {
domCache[button].disabled = disabled;
});
}
/**
* @param {HTMLInputElement | null} input
* @param {boolean} disabled
*/
function setInputDisabled(input, disabled) {
var popup = getPopup();
if (!popup || !input) {
return;
}
if (input.type === 'radio') {
/** @type {NodeListOf} */
var radios = popup.querySelectorAll("[name=\"".concat(swalClasses.radio, "\"]"));
for (var i = 0; i < radios.length; i++) {
radios[i].disabled = disabled;
}
} else {
input.disabled = disabled;
}
}
/**
* Enable all the buttons
* @this {SweetAlert}
*/
function enableButtons() {
setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], false);
}
/**
* Disable all the buttons
* @this {SweetAlert}
*/
function disableButtons() {
setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], true);
}
/**
* Enable the input field
* @this {SweetAlert}
*/
function enableInput() {
setInputDisabled(this.getInput(), false);
}
/**
* Disable the input field
* @this {SweetAlert}
*/
function disableInput() {
setInputDisabled(this.getInput(), true);
}
/**
* Show block with validation message
*
* @param {string} error
* @this {SweetAlert}
*/
function showValidationMessage(error) {
var domCache = privateProps.domCache.get(this);
var params = privateProps.innerParams.get(this);
setInnerHtml(domCache.validationMessage, error);
domCache.validationMessage.className = swalClasses['validation-message'];
if (params.customClass && params.customClass.validationMessage) {
addClass(domCache.validationMessage, params.customClass.validationMessage);
}
show(domCache.validationMessage);
var input = this.getInput();
if (input) {
input.setAttribute('aria-invalid', 'true');
input.setAttribute('aria-describedby', swalClasses['validation-message']);
focusInput(input);
addClass(input, swalClasses.inputerror);
}
}
/**
* Hide block with validation message
*
* @this {SweetAlert}
*/
function resetValidationMessage() {
var domCache = privateProps.domCache.get(this);
if (domCache.validationMessage) {
hide(domCache.validationMessage);
}
var input = this.getInput();
if (input) {
input.removeAttribute('aria-invalid');
input.removeAttribute('aria-describedby');
removeClass(input, swalClasses.inputerror);
}
}
var defaultParams = {
title: '',
titleText: '',
text: '',
html: '',
footer: '',
icon: undefined,
iconColor: undefined,
iconHtml: undefined,
template: undefined,
toast: false,
draggable: false,
animation: true,
theme: 'light',
showClass: {
popup: 'swal2-show',
backdrop: 'swal2-backdrop-show',
icon: 'swal2-icon-show'
},
hideClass: {
popup: 'swal2-hide',
backdrop: 'swal2-backdrop-hide',
icon: 'swal2-icon-hide'
},
customClass: {},
target: 'body',
color: undefined,
backdrop: true,
heightAuto: true,
allowOutsideClick: true,
allowEscapeKey: true,
allowEnterKey: true,
stopKeydownPropagation: true,
keydownListenerCapture: false,
showConfirmButton: true,
showDenyButton: false,
showCancelButton: false,
preConfirm: undefined,
preDeny: undefined,
confirmButtonText: 'OK',
confirmButtonAriaLabel: '',
confirmButtonColor: undefined,
denyButtonText: 'No',
denyButtonAriaLabel: '',
denyButtonColor: undefined,
cancelButtonText: 'Cancel',
cancelButtonAriaLabel: '',
cancelButtonColor: undefined,
buttonsStyling: true,
reverseButtons: false,
focusConfirm: true,
focusDeny: false,
focusCancel: false,
returnFocus: true,
showCloseButton: false,
closeButtonHtml: '×',
closeButtonAriaLabel: 'Close this dialog',
loaderHtml: '',
showLoaderOnConfirm: false,
showLoaderOnDeny: false,
imageUrl: undefined,
imageWidth: undefined,
imageHeight: undefined,
imageAlt: '',
timer: undefined,
timerProgressBar: false,
width: undefined,
padding: undefined,
background: undefined,
input: undefined,
inputPlaceholder: '',
inputLabel: '',
inputValue: '',
inputOptions: {},
inputAutoFocus: true,
inputAutoTrim: true,
inputAttributes: {},
inputValidator: undefined,
returnInputValueOnDeny: false,
validationMessage: undefined,
grow: false,
position: 'center',
progressSteps: [],
currentProgressStep: undefined,
progressStepsDistance: undefined,
willOpen: undefined,
didOpen: undefined,
didRender: undefined,
willClose: undefined,
didClose: undefined,
didDestroy: undefined,
scrollbarPadding: true,
topLayer: false
};
var updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'background', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'color', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'denyButtonAriaLabel', 'denyButtonColor', 'denyButtonText', 'didClose', 'didDestroy', 'draggable', 'footer', 'hideClass', 'html', 'icon', 'iconColor', 'iconHtml', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'preConfirm', 'preDeny', 'progressSteps', 'returnFocus', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'showDenyButton', 'text', 'title', 'titleText', 'theme', 'willClose'];
/** @type {Record} */
var deprecatedParams = {
allowEnterKey: undefined
};
var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'draggable', 'focusConfirm', 'focusDeny', 'focusCancel', 'returnFocus', 'heightAuto', 'keydownListenerCapture'];
/**
* Is valid parameter
*
* @param {string} paramName
* @returns {boolean}
*/
var isValidParameter = function isValidParameter(paramName) {
return Object.prototype.hasOwnProperty.call(defaultParams, paramName);
};
/**
* Is valid parameter for Swal.update() method
*
* @param {string} paramName
* @returns {boolean}
*/
var isUpdatableParameter = function isUpdatableParameter(paramName) {
return updatableParams.indexOf(paramName) !== -1;
};
/**
* Is deprecated parameter
*
* @param {string} paramName
* @returns {string | undefined}
*/
var isDeprecatedParameter = function isDeprecatedParameter(paramName) {
return deprecatedParams[paramName];
};
/**
* @param {string} param
*/
var checkIfParamIsValid = function checkIfParamIsValid(param) {
if (!isValidParameter(param)) {
warn("Unknown parameter \"".concat(param, "\""));
}
};
/**
* @param {string} param
*/
var checkIfToastParamIsValid = function checkIfToastParamIsValid(param) {
if (toastIncompatibleParams.includes(param)) {
warn("The parameter \"".concat(param, "\" is incompatible with toasts"));
}
};
/**
* @param {string} param
*/
var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {
var isDeprecated = isDeprecatedParameter(param);
if (isDeprecated) {
warnAboutDeprecation(param, isDeprecated);
}
};
/**
* Show relevant warnings for given params
*
* @param {SweetAlertOptions} params
*/
var showWarningsForParams = function showWarningsForParams(params) {
if (params.backdrop === false && params.allowOutsideClick) {
warn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
}
if (params.theme && !['light', 'dark', 'auto', 'minimal', 'borderless', 'bootstrap-4', 'bootstrap-4-light', 'bootstrap-4-dark', 'bootstrap-5', 'bootstrap-5-light', 'bootstrap-5-dark', 'material-ui', 'material-ui-light', 'material-ui-dark', 'embed-iframe', 'bulma', 'bulma-light', 'bulma-dark'].includes(params.theme)) {
warn("Invalid theme \"".concat(params.theme, "\""));
}
for (var param in params) {
checkIfParamIsValid(param);
if (params.toast) {
checkIfToastParamIsValid(param);
}
checkIfParamIsDeprecated(param);
}
};
/**
* Updates popup parameters.
*
* @this {any}
* @param {SweetAlertOptions} params
*/
function update(params) {
var container = getContainer();
var popup = getPopup();
var innerParams = privateProps.innerParams.get(this);
if (!popup || hasClass(popup, innerParams.hideClass.popup)) {
warn("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
return;
}
var validUpdatableParams = filterValidParams(params);
var updatedParams = Object.assign({}, innerParams, validUpdatableParams);
showWarningsForParams(updatedParams);
if (container) {
container.dataset['swal2Theme'] = updatedParams.theme;
}
render(this, updatedParams);
privateProps.innerParams.set(this, updatedParams);
Object.defineProperties(this, {
params: {
value: Object.assign({}, this.params, params),
writable: false,
enumerable: true
}
});
}
/**
* @param {SweetAlertOptions} params
* @returns {SweetAlertOptions}
*/
var filterValidParams = function filterValidParams(params) {
/** @type {Record} */
var validUpdatableParams = {};
Object.keys(params).forEach(function (param) {
if (isUpdatableParameter(param)) {
var typedParams =
/** @type {Record} */
params;
validUpdatableParams[param] = typedParams[param];
} else {
warn("Invalid parameter to update: ".concat(param));
}
});
return validUpdatableParams;
};
/**
* Dispose the current SweetAlert2 instance
* @this {SweetAlert}
*/
function _destroy() {
var _globalState$eventEmi;
var domCache = privateProps.domCache.get(this);
var innerParams = privateProps.innerParams.get(this);
if (!innerParams) {
disposeWeakMaps(this); // The WeakMaps might have been partly destroyed, we must recall it to dispose any remaining WeakMaps #2335
return; // This instance has already been destroyed
} // Check if there is another Swal closing
if (domCache.popup && globalState.swalCloseEventFinishedCallback) {
globalState.swalCloseEventFinishedCallback();
delete globalState.swalCloseEventFinishedCallback;
}
if (typeof innerParams.didDestroy === 'function') {
innerParams.didDestroy();
}
(_globalState$eventEmi = globalState.eventEmitter) === null || _globalState$eventEmi === void 0 || _globalState$eventEmi.emit('didDestroy');
disposeSwal(this);
}
/**
* @param {SweetAlert} instance
*/
var disposeSwal = function disposeSwal(instance) {
disposeWeakMaps(instance); // Unset this.params so GC will dispose it (#1569)
// @ts-ignore
delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)
delete globalState.keydownHandler;
delete globalState.keydownTarget; // Unset currentInstance
delete globalState.currentInstance;
};
/**
* @param {SweetAlert} instance
*/
var disposeWeakMaps = function disposeWeakMaps(instance) {
// If the current instance is awaiting a promise result, we keep the privateMethods to call them once the promise result is retrieved #2335
if (instance.isAwaitingPromise) {
unsetWeakMaps(privateProps, instance);
instance.isAwaitingPromise = true;
} else {
unsetWeakMaps(privateMethods, instance);
unsetWeakMaps(privateProps, instance); // @ts-ignore
delete instance.isAwaitingPromise; // Unset instance methods
// @ts-ignore
delete instance.disableButtons; // @ts-ignore
delete instance.enableButtons; // @ts-ignore
delete instance.getInput; // @ts-ignore
delete instance.disableInput; // @ts-ignore
delete instance.enableInput; // @ts-ignore
delete instance.hideLoading; // @ts-ignore
delete instance.disableLoading; // @ts-ignore
delete instance.showValidationMessage; // @ts-ignore
delete instance.resetValidationMessage; // @ts-ignore
delete instance.close; // @ts-ignore
delete instance.closePopup; // @ts-ignore
delete instance.closeModal; // @ts-ignore
delete instance.closeToast; // @ts-ignore
delete instance.rejectPromise; // @ts-ignore
delete instance.update; // @ts-ignore
delete instance._destroy;
}
};
/**
* @param {Record>} obj
* @param {SweetAlert} instance
*/
var unsetWeakMaps = function unsetWeakMaps(obj, instance) {
for (var i in obj) {
obj[i]["delete"](instance);
}
};
var instanceMethods =
/*#__PURE__*/
Object.freeze({
__proto__: null,
_destroy: _destroy,
close: close,
closeModal: close,
closePopup: close,
closeToast: close,
disableButtons: disableButtons,
disableInput: disableInput,
disableLoading: hideLoading,
enableButtons: enableButtons,
enableInput: enableInput,
getInput: getInput,
handleAwaitingPromise: handleAwaitingPromise,
hideLoading: hideLoading,
rejectPromise: rejectPromise,
resetValidationMessage: resetValidationMessage,
showValidationMessage: showValidationMessage,
update: update
});
/**
* @param {SweetAlertOptions} innerParams
* @param {DomCache} domCache
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var handlePopupClick = function handlePopupClick(innerParams, domCache, dismissWith) {
if (innerParams.toast) {
handleToastClick(innerParams, domCache, dismissWith);
} else {
// Ignore click events that had mousedown on the popup but mouseup on the container
// This can happen when the user drags a slider
handleModalMousedown(domCache); // Ignore click events that had mousedown on the container but mouseup on the popup
handleContainerMousedown(domCache);
handleModalClick(innerParams, domCache, dismissWith);
}
};
/**
* @param {SweetAlertOptions} innerParams
* @param {DomCache} domCache
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var handleToastClick = function handleToastClick(innerParams, domCache, dismissWith) {
// Closing toast by internal click
domCache.popup.onclick = function () {
if (innerParams && (isAnyButtonShown(innerParams) || innerParams.timer || innerParams.input)) {
return;
}
dismissWith(DismissReason.close);
};
};
/**
* @param {SweetAlertOptions} innerParams
* @returns {boolean}
*/
var isAnyButtonShown = function isAnyButtonShown(innerParams) {
return Boolean(innerParams.showConfirmButton || innerParams.showDenyButton || innerParams.showCancelButton || innerParams.showCloseButton);
};
var ignoreOutsideClick = false;
/**
* @param {DomCache} domCache
*/
var handleModalMousedown = function handleModalMousedown(domCache) {
domCache.popup.onmousedown = function () {
domCache.container.onmouseup = function (e) {
domCache.container.onmouseup = function () {}; // We only check if the mouseup target is the container because usually it doesn't
// have any other direct children aside of the popup
if (e.target === domCache.container) {
ignoreOutsideClick = true;
}
};
};
};
/**
* @param {DomCache} domCache
*/
var handleContainerMousedown = function handleContainerMousedown(domCache) {
domCache.container.onmousedown = function (e) {
// prevent the modal text from being selected on double click on the container (allowOutsideClick: false)
if (e.target === domCache.container) {
e.preventDefault();
}
domCache.popup.onmouseup = function (e) {
domCache.popup.onmouseup = function () {}; // We also need to check if the mouseup target is a child of the popup
if (e.target === domCache.popup || e.target instanceof HTMLElement && domCache.popup.contains(e.target)) {
ignoreOutsideClick = true;
}
};
};
};
/**
* @param {SweetAlertOptions} innerParams
* @param {DomCache} domCache
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var handleModalClick = function handleModalClick(innerParams, domCache, dismissWith) {
domCache.container.onclick = function (e) {
if (ignoreOutsideClick) {
ignoreOutsideClick = false;
return;
}
if (e.target === domCache.container && callIfFunction(innerParams.allowOutsideClick)) {
dismissWith(DismissReason.backdrop);
}
};
};
/**
* @param {unknown} elem
* @returns {boolean}
*/
var isJqueryElement = function isJqueryElement(elem) {
return typeof elem === 'object' && elem !== null && 'jquery' in elem;
};
/**
* @param {unknown} elem
* @returns {boolean}
*/
var isElement = function isElement(elem) {
return elem instanceof Element || isJqueryElement(elem);
};
/**
* @param {ReadonlyArray} args
* @returns {SweetAlertOptions}
*/
var argsToParams = function argsToParams(args) {
/** @type {Record} */
var params = {};
if (typeof args[0] === 'object' && !isElement(args[0])) {
Object.assign(params, args[0]);
} else {
['title', 'html', 'icon'].forEach(function (name, index) {
var arg = args[index];
if (typeof arg === 'string' || isElement(arg)) {
params[name] = arg;
} else if (arg !== undefined) {
error("Unexpected type of ".concat(name, "! Expected \"string\" or \"Element\", got ").concat(typeof arg));
}
});
}
return (
/** @type {SweetAlertOptions} */
params
);
};
/**
* Main method to create a new SweetAlert2 popup
*
* @this {new (...args: any[]) => any}
* @param {...SweetAlertOptions} args
* @returns {Promise}
*/
function fire() {
for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) {
args[_key4] = arguments[_key4];
}
return _construct(this, args);
}
/**
* Returns an extended version of `Swal` containing `params` as defaults.
* Useful for reusing Swal configuration.
*
* For example:
*
* Before:
* const textPromptOptions = { input: 'text', showCancelButton: true }
* const {value: firstName} = await Swal.fire({ ...textPromptOptions, title: 'What is your first name?' })
* const {value: lastName} = await Swal.fire({ ...textPromptOptions, title: 'What is your last name?' })
*
* After:
* const TextPrompt = Swal.mixin({ input: 'text', showCancelButton: true })
* const {value: firstName} = await TextPrompt('What is your first name?')
* const {value: lastName} = await TextPrompt('What is your last name?')
*
* @param {SweetAlertOptions} mixinParams
* @returns {SweetAlert}
* @this {typeof import('../SweetAlert.js').SweetAlert}
*/
function mixin(mixinParams) {
// @ts-ignore: 'this' refers to the SweetAlert constructor
var MixinSwal =
/*#__PURE__*/
function (_this93) {
function MixinSwal() {
_classCallCheck(this, MixinSwal);
return _callSuper(this, MixinSwal, arguments);
}
_inherits(MixinSwal, _this93);
return _createClass2(MixinSwal, [{
key: "_main",
value:
/**
* @param {any} params
* @param {any} priorityMixinParams
*/
function _main(params, priorityMixinParams) {
return _superPropGet(MixinSwal, "_main", this, 3)([params, Object.assign({}, mixinParams, priorityMixinParams)]);
}
}]);
}(this); // @ts-ignore
return MixinSwal;
}
/**
* If `timer` parameter is set, returns number of milliseconds of timer remained.
* Otherwise, returns undefined.
*
* @returns {number | undefined}
*/
var getTimerLeft = function getTimerLeft() {
return globalState.timeout && globalState.timeout.getTimerLeft();
};
/**
* Stop timer. Returns number of milliseconds of timer remained.
* If `timer` parameter isn't set, returns undefined.
*
* @returns {number | undefined}
*/
var stopTimer = function stopTimer() {
if (globalState.timeout) {
stopTimerProgressBar();
return globalState.timeout.stop();
}
};
/**
* Resume timer. Returns number of milliseconds of timer remained.
* If `timer` parameter isn't set, returns undefined.
*
* @returns {number | undefined}
*/
var resumeTimer = function resumeTimer() {
if (globalState.timeout) {
var remaining = globalState.timeout.start();
animateTimerProgressBar(remaining);
return remaining;
}
};
/**
* Resume timer. Returns number of milliseconds of timer remained.
* If `timer` parameter isn't set, returns undefined.
*
* @returns {number | undefined}
*/
var toggleTimer = function toggleTimer() {
var timer = globalState.timeout;
return timer && (timer.running ? stopTimer() : resumeTimer());
};
/**
* Increase timer. Returns number of milliseconds of an updated timer.
* If `timer` parameter isn't set, returns undefined.
*
* @param {number} ms
* @returns {number | undefined}
*/
var increaseTimer = function increaseTimer(ms) {
if (globalState.timeout) {
var remaining = globalState.timeout.increase(ms);
animateTimerProgressBar(remaining, true);
return remaining;
}
};
/**
* Check if timer is running. Returns true if timer is running
* or false if timer is paused or stopped.
* If `timer` parameter isn't set, returns undefined
*
* @returns {boolean}
*/
var isTimerRunning = function isTimerRunning() {
return Boolean(globalState.timeout && globalState.timeout.isRunning());
};
var bodyClickListenerAdded = false;
/** @type {Record} */
var clickHandlers = {};
/**
* @this {any}
* @param {string} attr
*/
function bindClickHandler() {
var attr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'data-swal-template';
clickHandlers[attr] = this;
if (!bodyClickListenerAdded) {
document.body.addEventListener('click', bodyClickListener);
bodyClickListenerAdded = true;
}
}
/**
* @param {MouseEvent} event
*/
var bodyClickListener = function bodyClickListener(event) {
for (var el =
/** @type {any} */
event.target; el && el !== document; el = el.parentNode) {
for (var attr in clickHandlers) {
var template = el.getAttribute && el.getAttribute(attr);
if (template) {
clickHandlers[attr].fire({
template: template
});
return;
}
}
}
}; // Source: https://gist.github.com/mudge/5830382?permalink_comment_id=2691957#gistcomment-2691957
var EventEmitter =
/*#__PURE__*/
function () {
function EventEmitter() {
_classCallCheck(this, EventEmitter);
/** @type {Events} */
this.events = {};
}
/**
* @param {string} eventName
* @returns {EventHandlers}
*/
return _createClass2(EventEmitter, [{
key: "_getHandlersByEventName",
value: function _getHandlersByEventName(eventName) {
if (typeof this.events[eventName] === 'undefined') {
// not Set because we need to keep the FIFO order
// https://github.com/sweetalert2/sweetalert2/pull/2763#discussion_r1748990334
this.events[eventName] = [];
}
return this.events[eventName];
}
/**
* @param {string} eventName
* @param {EventHandler} eventHandler
*/
}, {
key: "on",
value: function on(eventName, eventHandler) {
var currentHandlers = this._getHandlersByEventName(eventName);
if (!currentHandlers.includes(eventHandler)) {
currentHandlers.push(eventHandler);
}
}
/**
* @param {string} eventName
* @param {EventHandler} eventHandler
*/
}, {
key: "once",
value: function once(eventName, eventHandler) {
var _this94 = this;
/**
* @param {...any} args
*/
var _onceFn = function onceFn() {
_this94.removeListener(eventName, _onceFn); // @ts-ignore
for (var _len4 = arguments.length, args = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) {
args[_key5] = arguments[_key5];
}
eventHandler.apply(_this94, args);
};
this.on(eventName, _onceFn);
}
/**
* @param {string} eventName
* @param {...any} args
*/
}, {
key: "emit",
value: function emit(eventName) {
var _this95 = this;
for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key6 = 1; _key6 < _len5; _key6++) {
args[_key6 - 1] = arguments[_key6];
}
this._getHandlersByEventName(eventName).forEach(
/**
* @param {EventHandler} eventHandler
*/
function (eventHandler) {
try {
// @ts-ignore
eventHandler.apply(_this95, args);
} catch (error) {
console.error(error);
}
});
}
/**
* @param {string} eventName
* @param {EventHandler} eventHandler
*/
}, {
key: "removeListener",
value: function removeListener(eventName, eventHandler) {
var currentHandlers = this._getHandlersByEventName(eventName);
var index = currentHandlers.indexOf(eventHandler);
if (index > -1) {
currentHandlers.splice(index, 1);
}
}
/**
* @param {string} eventName
*/
}, {
key: "removeAllListeners",
value: function removeAllListeners(eventName) {
if (this.events[eventName] !== undefined) {
// https://github.com/sweetalert2/sweetalert2/pull/2763#discussion_r1749239222
this.events[eventName].length = 0;
}
}
}, {
key: "reset",
value: function reset() {
this.events = {};
}
}]);
}();
globalState.eventEmitter = new EventEmitter();
/**
* @param {string} eventName
* @param {EventHandler} eventHandler
*/
var on = function on(eventName, eventHandler) {
if (globalState.eventEmitter) {
globalState.eventEmitter.on(eventName, eventHandler);
}
};
/**
* @param {string} eventName
* @param {EventHandler} eventHandler
*/
var once = function once(eventName, eventHandler) {
if (globalState.eventEmitter) {
globalState.eventEmitter.once(eventName, eventHandler);
}
};
/**
* @param {string} [eventName]
* @param {EventHandler} [eventHandler]
*/
var off = function off(eventName, eventHandler) {
if (!globalState.eventEmitter) {
return;
} // Remove all handlers for all events
if (!eventName) {
globalState.eventEmitter.reset();
return;
}
if (eventHandler) {
// Remove a specific handler
globalState.eventEmitter.removeListener(eventName, eventHandler);
} else {
// Remove all handlers for a specific event
globalState.eventEmitter.removeAllListeners(eventName);
}
};
var staticMethods =
/*#__PURE__*/
Object.freeze({
__proto__: null,
argsToParams: argsToParams,
bindClickHandler: bindClickHandler,
clickCancel: clickCancel,
clickConfirm: clickConfirm,
clickDeny: clickDeny,
enableLoading: showLoading,
fire: fire,
getActions: getActions,
getCancelButton: getCancelButton,
getCloseButton: getCloseButton,
getConfirmButton: getConfirmButton,
getContainer: getContainer,
getDenyButton: getDenyButton,
getFocusableElements: getFocusableElements,
getFooter: getFooter,
getHtmlContainer: getHtmlContainer,
getIcon: getIcon,
getIconContent: getIconContent,
getImage: getImage,
getInputLabel: getInputLabel,
getLoader: getLoader,
getPopup: getPopup,
getProgressSteps: getProgressSteps,
getTimerLeft: getTimerLeft,
getTimerProgressBar: getTimerProgressBar,
getTitle: getTitle,
getValidationMessage: getValidationMessage,
increaseTimer: increaseTimer,
isDeprecatedParameter: isDeprecatedParameter,
isLoading: isLoading,
isTimerRunning: isTimerRunning,
isUpdatableParameter: isUpdatableParameter,
isValidParameter: isValidParameter,
isVisible: isVisible,
mixin: mixin,
off: off,
on: on,
once: once,
resumeTimer: resumeTimer,
showLoading: showLoading,
stopTimer: stopTimer,
toggleTimer: toggleTimer
});
var Timer =
/*#__PURE__*/
function () {
/**
* @param {() => void} callback
* @param {number} delay
*/
function Timer(callback, delay) {
_classCallCheck(this, Timer);
this.callback = callback;
this.remaining = delay;
this.running = false;
this.start();
}
/**
* @returns {number}
*/
return _createClass2(Timer, [{
key: "start",
value: function start() {
if (!this.running) {
this.running = true;
this.started = new Date();
this.id = setTimeout(this.callback, this.remaining);
}
return this.remaining;
}
/**
* @returns {number}
*/
}, {
key: "stop",
value: function stop() {
if (this.started && this.running) {
this.running = false;
clearTimeout(this.id);
this.remaining -= new Date().getTime() - this.started.getTime();
}
return this.remaining;
}
/**
* @param {number} n
* @returns {number}
*/
}, {
key: "increase",
value: function increase(n) {
var running = this.running;
if (running) {
this.stop();
}
this.remaining += n;
if (running) {
this.start();
}
return this.remaining;
}
/**
* @returns {number}
*/
}, {
key: "getTimerLeft",
value: function getTimerLeft() {
if (this.running) {
this.stop();
this.start();
}
return this.remaining;
}
/**
* @returns {boolean}
*/
}, {
key: "isRunning",
value: function isRunning() {
return this.running;
}
}]);
}();
var swalStringParams = ['swal-title', 'swal-html', 'swal-footer'];
/**
* @param {SweetAlertOptions} params
* @returns {SweetAlertOptions}
*/
var getTemplateParams = function getTemplateParams(params) {
var template = typeof params.template === 'string' ?
/** @type {HTMLTemplateElement} */
document.querySelector(params.template) : params.template;
if (!template) {
return {};
}
/** @type {DocumentFragment} */
var templateContent = template.content;
showWarningsForElements(templateContent);
var result = Object.assign(getSwalParams(templateContent), getSwalFunctionParams(templateContent), getSwalButtons(templateContent), getSwalImage(templateContent), getSwalIcon(templateContent), getSwalInput(templateContent), getSwalStringParams(templateContent, swalStringParams));
return result;
};
/**
* @param {DocumentFragment} templateContent
* @returns {Record}
*/
var getSwalParams = function getSwalParams(templateContent) {
/** @type {Record} */
var result = {};
/** @type {HTMLElement[]} */
var swalParams = Array.from(templateContent.querySelectorAll('swal-param'));
swalParams.forEach(function (param) {
showWarningsForAttributes(param, ['name', 'value']);
var paramName =
/** @type {keyof SweetAlertOptions} */
param.getAttribute('name');
var value = param.getAttribute('value');
if (!paramName || !value) {
return;
}
if (paramName in defaultParams && typeof defaultParams[
/** @type {keyof typeof defaultParams} */
paramName] === 'boolean') {
result[paramName] = value !== 'false';
} else if (paramName in defaultParams && typeof defaultParams[
/** @type {keyof typeof defaultParams} */
paramName] === 'object') {
result[paramName] = JSON.parse(value);
} else {
result[paramName] = value;
}
});
return result;
};
/**
* @param {DocumentFragment} templateContent
* @returns {Record void>}
*/
var getSwalFunctionParams = function getSwalFunctionParams(templateContent) {
/** @type {Record void>} */
var result = {};
/** @type {HTMLElement[]} */
var swalFunctions = Array.from(templateContent.querySelectorAll('swal-function-param'));
swalFunctions.forEach(function (param) {
var paramName =
/** @type {keyof SweetAlertOptions} */
param.getAttribute('name');
var value = param.getAttribute('value');
if (!paramName || !value) {
return;
}
result[paramName] = new Function("return ".concat(value))();
});
return result;
};
/**
* @param {DocumentFragment} templateContent
* @returns {Record}
*/
var getSwalButtons = function getSwalButtons(templateContent) {
/** @type {Record} */
var result = {};
/** @type {HTMLElement[]} */
var swalButtons = Array.from(templateContent.querySelectorAll('swal-button'));
swalButtons.forEach(function (button) {
showWarningsForAttributes(button, ['type', 'color', 'aria-label']);
var type = button.getAttribute('type');
if (!type || !['confirm', 'cancel', 'deny'].includes(type)) {
return;
}
result["".concat(type, "ButtonText")] = button.innerHTML;
result["show".concat(capitalizeFirstLetter(type), "Button")] = true;
if (button.hasAttribute('color')) {
var color = button.getAttribute('color');
if (color !== null) {
result["".concat(type, "ButtonColor")] = color;
}
}
if (button.hasAttribute('aria-label')) {
var ariaLabel = button.getAttribute('aria-label');
if (ariaLabel !== null) {
result["".concat(type, "ButtonAriaLabel")] = ariaLabel;
}
}
});
return result;
};
/**
* @param {DocumentFragment} templateContent
* @returns {Pick}
*/
var getSwalImage = function getSwalImage(templateContent) {
var result = {};
/** @type {HTMLElement | null} */
var image = templateContent.querySelector('swal-image');
if (image) {
showWarningsForAttributes(image, ['src', 'width', 'height', 'alt']);
if (image.hasAttribute('src')) {
result.imageUrl = image.getAttribute('src') || undefined;
}
if (image.hasAttribute('width')) {
result.imageWidth = image.getAttribute('width') || undefined;
}
if (image.hasAttribute('height')) {
result.imageHeight = image.getAttribute('height') || undefined;
}
if (image.hasAttribute('alt')) {
result.imageAlt = image.getAttribute('alt') || undefined;
}
}
return result;
};
/**
* @param {DocumentFragment} templateContent
* @returns {object}
*/
var getSwalIcon = function getSwalIcon(templateContent) {
var result = {};
/** @type {HTMLElement | null} */
var icon = templateContent.querySelector('swal-icon');
if (icon) {
showWarningsForAttributes(icon, ['type', 'color']);
if (icon.hasAttribute('type')) {
result.icon = icon.getAttribute('type');
}
if (icon.hasAttribute('color')) {
result.iconColor = icon.getAttribute('color');
}
result.iconHtml = icon.innerHTML;
}
return result;
};
/**
* @param {DocumentFragment} templateContent
* @returns {object}
*/
var getSwalInput = function getSwalInput(templateContent) {
/** @type {Record} */
var result = {};
/** @type {HTMLElement | null} */
var input = templateContent.querySelector('swal-input');
if (input) {
showWarningsForAttributes(input, ['type', 'label', 'placeholder', 'value']);
result.input = input.getAttribute('type') || 'text';
if (input.hasAttribute('label')) {
result.inputLabel = input.getAttribute('label');
}
if (input.hasAttribute('placeholder')) {
result.inputPlaceholder = input.getAttribute('placeholder');
}
if (input.hasAttribute('value')) {
result.inputValue = input.getAttribute('value');
}
}
/** @type {HTMLElement[]} */
var inputOptions = Array.from(templateContent.querySelectorAll('swal-input-option'));
if (inputOptions.length) {
result.inputOptions = {};
inputOptions.forEach(function (option) {
showWarningsForAttributes(option, ['value']);
var optionValue = option.getAttribute('value');
if (!optionValue) {
return;
}
var optionName = option.innerHTML;
result.inputOptions[optionValue] = optionName;
});
}
return result;
};
/**
* @param {DocumentFragment} templateContent
* @param {string[]} paramNames
* @returns {Record}
*/
var getSwalStringParams = function getSwalStringParams(templateContent, paramNames) {
/** @type {Record} */
var result = {};
for (var i in paramNames) {
var paramName = paramNames[i];
/** @type {HTMLElement | null} */
var tag = templateContent.querySelector(paramName);
if (tag) {
showWarningsForAttributes(tag, []);
result[paramName.replace(/^swal-/, '')] = tag.innerHTML.trim();
}
}
return result;
};
/**
* @param {DocumentFragment} templateContent
*/
var showWarningsForElements = function showWarningsForElements(templateContent) {
var allowedElements = swalStringParams.concat(['swal-param', 'swal-function-param', 'swal-button', 'swal-image', 'swal-icon', 'swal-input', 'swal-input-option']);
Array.from(templateContent.children).forEach(function (el) {
var tagName = el.tagName.toLowerCase();
if (!allowedElements.includes(tagName)) {
warn("Unrecognized element <".concat(tagName, ">"));
}
});
};
/**
* @param {HTMLElement} el
* @param {string[]} allowedAttributes
*/
var showWarningsForAttributes = function showWarningsForAttributes(el, allowedAttributes) {
Array.from(el.attributes).forEach(function (attribute) {
if (allowedAttributes.indexOf(attribute.name) === -1) {
warn(["Unrecognized attribute \"".concat(attribute.name, "\" on <").concat(el.tagName.toLowerCase(), ">."), "".concat(allowedAttributes.length ? "Allowed attributes are: ".concat(allowedAttributes.join(', ')) : 'To set the value, use HTML within the element.')]);
}
});
};
var SHOW_CLASS_TIMEOUT = 10;
/**
* Open popup, add necessary classes and styles, fix scrollbar
*
* @param {SweetAlertOptions} params
*/
var openPopup = function openPopup(params) {
var _globalState$eventEmi, _globalState$eventEmi2;
var container = getContainer();
var popup = getPopup();
if (!container || !popup) {
return;
}
if (typeof params.willOpen === 'function') {
params.willOpen(popup);
}
(_globalState$eventEmi = globalState.eventEmitter) === null || _globalState$eventEmi === void 0 || _globalState$eventEmi.emit('willOpen', popup);
var bodyStyles = window.getComputedStyle(document.body);
var initialBodyOverflow = bodyStyles.overflowY;
addClasses(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'
setTimeout(function () {
setScrollingVisibility(container, popup);
}, SHOW_CLASS_TIMEOUT);
if (isModal()) {
// Using ternary instead of ?? operator for Webpack 4 compatibility
fixScrollContainer(container, params.scrollbarPadding !== undefined ? params.scrollbarPadding : false, initialBodyOverflow);
setAriaHidden();
}
if (!isToast() && !globalState.previousActiveElement) {
globalState.previousActiveElement = document.activeElement;
}
if (typeof params.didOpen === 'function') {
var didOpen = params.didOpen;
setTimeout(function () {
return didOpen(popup);
});
}
(_globalState$eventEmi2 = globalState.eventEmitter) === null || _globalState$eventEmi2 === void 0 || _globalState$eventEmi2.emit('didOpen', popup);
};
/**
* @param {Event} event
*/
var _swalOpenAnimationFinished = function swalOpenAnimationFinished(event) {
var popup = getPopup();
if (!popup || event.target !== popup) {
return;
}
var container = getContainer();
if (!container) {
return;
}
popup.removeEventListener('animationend', _swalOpenAnimationFinished);
popup.removeEventListener('transitionend', _swalOpenAnimationFinished);
container.style.overflowY = 'auto'; // no-transition is added in init() in case one swal is opened right after another
removeClass(container, swalClasses['no-transition']);
};
/**
* @param {HTMLElement} container
* @param {HTMLElement} popup
*/
var setScrollingVisibility = function setScrollingVisibility(container, popup) {
if (hasCssAnimation(popup)) {
container.style.overflowY = 'hidden';
popup.addEventListener('animationend', _swalOpenAnimationFinished);
popup.addEventListener('transitionend', _swalOpenAnimationFinished);
} else {
container.style.overflowY = 'auto';
}
};
/**
* @param {HTMLElement} container
* @param {boolean} scrollbarPadding
* @param {string} initialBodyOverflow
*/
var fixScrollContainer = function fixScrollContainer(container, scrollbarPadding, initialBodyOverflow) {
iOSfix();
if (scrollbarPadding && initialBodyOverflow !== 'hidden') {
replaceScrollbarWithPadding(initialBodyOverflow);
} // sweetalert2/issues/1247
setTimeout(function () {
container.scrollTop = 0;
});
};
/**
* @param {HTMLElement} container
* @param {HTMLElement} popup
* @param {SweetAlertOptions} params
*/
var addClasses = function addClasses(container, popup, params) {
var _params$showClass;
if ((_params$showClass = params.showClass) !== null && _params$showClass !== void 0 && _params$showClass.backdrop) {
addClass(container, params.showClass.backdrop);
}
if (params.animation) {
// this workaround with opacity is needed for https://github.com/sweetalert2/sweetalert2/issues/2059
popup.style.setProperty('opacity', '0', 'important');
show(popup, 'grid');
setTimeout(function () {
var _params$showClass2; // Animate popup right after showing it
if ((_params$showClass2 = params.showClass) !== null && _params$showClass2 !== void 0 && _params$showClass2.popup) {
addClass(popup, params.showClass.popup);
} // and remove the opacity workaround
popup.style.removeProperty('opacity');
}, SHOW_CLASS_TIMEOUT); // 10ms in order to fix #2062
} else {
show(popup, 'grid');
}
addClass([document.documentElement, document.body], swalClasses.shown);
if (params.heightAuto && params.backdrop && !params.toast) {
addClass([document.documentElement, document.body], swalClasses['height-auto']);
}
};
var defaultInputValidators = {
/**
* @param {string} string
* @param {string} [validationMessage]
* @returns {Promise}
*/
email: function email(string, validationMessage) {
return /^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid email address');
},
/**
* @param {string} string
* @param {string} [validationMessage]
* @returns {Promise}
*/
url: function url(string, validationMessage) {
// taken from https://stackoverflow.com/a/3809435 with a small change from #1306 and #2013
return /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid URL');
}
};
/**
* @param {SweetAlertOptions} params
*/
function setDefaultInputValidators(params) {
// Use default `inputValidator` for supported input types if not provided
if (params.inputValidator) {
return;
}
if (params.input === 'email') {
params.inputValidator = defaultInputValidators['email'];
}
if (params.input === 'url') {
params.inputValidator = defaultInputValidators['url'];
}
}
/**
* @param {SweetAlertOptions} params
*/
function validateCustomTargetElement(params) {
// Determine if the custom target element is valid
if (!params.target || typeof params.target === 'string' && !document.querySelector(params.target) || typeof params.target !== 'string' && !params.target.appendChild) {
warn('Target parameter is not valid, defaulting to "body"');
params.target = 'body';
}
}
/**
* Set type, text and actions on popup
*
* @param {SweetAlertOptions} params
*/
function setParameters(params) {
setDefaultInputValidators(params); // showLoaderOnConfirm && preConfirm
if (params.showLoaderOnConfirm && !params.preConfirm) {
warn('showLoaderOnConfirm is set to true, but preConfirm is not defined.\n' + 'showLoaderOnConfirm should be used together with preConfirm, see usage example:\n' + 'https://sweetalert2.github.io/#ajax-request');
}
validateCustomTargetElement(params); // Replace newlines with in title
if (typeof params.title === 'string') {
params.title = params.title.split('\n').join(' ');
}
init(params);
}
/** @type {SweetAlert} */
var currentInstance;
var _promise =
/*#__PURE__*/
new WeakMap();
var SweetAlert =
/*#__PURE__*/
function () {
/**
* @param {...(SweetAlertOptions | string)} args
* @this {SweetAlert}
*/
function SweetAlert() {
_classCallCheck(this, SweetAlert);
/**
* @type {Promise}
*/
_classPrivateFieldInitSpec(this, _promise,
/** @type {Promise} */
Promise.resolve({
isConfirmed: false,
isDenied: false,
isDismissed: true
})); // Prevent run in Node env
if (typeof window === 'undefined') {
return;
}
currentInstance = this; // @ts-ignore
for (var _len6 = arguments.length, args = new Array(_len6), _key7 = 0; _key7 < _len6; _key7++) {
args[_key7] = arguments[_key7];
}
var outerParams = Object.freeze(this.constructor.argsToParams(args));
/** @type {Readonly} */
this.params = outerParams;
/** @type {boolean} */
this.isAwaitingPromise = false;
_classPrivateFieldSet2(_promise, this, this._main(currentInstance.params));
}
/**
* @param {any} userParams
* @param {any} mixinParams
*/
return _createClass2(SweetAlert, [{
key: "_main",
value: function _main(userParams) {
var mixinParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
showWarningsForParams(Object.assign({}, mixinParams, userParams));
if (globalState.currentInstance) {
var swalPromiseResolve = privateMethods.swalPromiseResolve.get(globalState.currentInstance);
var isAwaitingPromise = globalState.currentInstance.isAwaitingPromise;
globalState.currentInstance._destroy();
if (!isAwaitingPromise) {
swalPromiseResolve({
isDismissed: true
});
}
if (isModal()) {
unsetAriaHidden();
}
}
globalState.currentInstance = currentInstance;
var innerParams = prepareParams(userParams, mixinParams);
setParameters(innerParams);
Object.freeze(innerParams); // clear the previous timer
if (globalState.timeout) {
globalState.timeout.stop();
delete globalState.timeout;
} // clear the restore focus timeout
clearTimeout(globalState.restoreFocusTimeout);
var domCache = populateDomCache(currentInstance);
render(currentInstance, innerParams);
privateProps.innerParams.set(currentInstance, innerParams);
return swalPromise(currentInstance, domCache, innerParams);
} // `catch` cannot be the name of a module export, so we define our thenable methods here instead
/**
* @param {any} onFulfilled
*/
}, {
key: "then",
value: function then(onFulfilled) {
return _classPrivateFieldGet2(_promise, this).then(onFulfilled);
}
/**
* @param {any} onFinally
*/
}, {
key: "finally",
value: function _finally(onFinally) {
return _classPrivateFieldGet2(_promise, this)["finally"](onFinally);
}
}]);
}();
/**
* @param {SweetAlert} instance
* @param {DomCache} domCache
* @param {SweetAlertOptions} innerParams
* @returns {Promise}
*/
var swalPromise = function swalPromise(instance, domCache, innerParams) {
return new Promise(function (resolve, reject) {
// functions to handle all closings/dismissals
/**
* @param {DismissReason} dismiss
*/
var dismissWith = function dismissWith(dismiss) {
instance.close({
isDismissed: true,
dismiss: dismiss,
isConfirmed: false,
isDenied: false
});
};
privateMethods.swalPromiseResolve.set(instance, resolve);
privateMethods.swalPromiseReject.set(instance, reject);
domCache.confirmButton.onclick = function () {
handleConfirmButtonClick(instance);
};
domCache.denyButton.onclick = function () {
handleDenyButtonClick(instance);
};
domCache.cancelButton.onclick = function () {
handleCancelButtonClick(instance, dismissWith);
};
domCache.closeButton.onclick = function () {
dismissWith(DismissReason.close);
};
handlePopupClick(innerParams, domCache, dismissWith);
addKeydownHandler(globalState, innerParams, dismissWith);
handleInputOptionsAndValue(instance, innerParams);
openPopup(innerParams);
setupTimer(globalState, innerParams, dismissWith);
initFocus(domCache, innerParams); // Scroll container to top on open (#1247, #1946)
setTimeout(function () {
domCache.container.scrollTop = 0;
});
});
};
/**
* @param {SweetAlertOptions} userParams
* @param {SweetAlertOptions} mixinParams
* @returns {SweetAlertOptions}
*/
var prepareParams = function prepareParams(userParams, mixinParams) {
var templateParams = getTemplateParams(userParams);
var params = Object.assign({}, defaultParams, mixinParams, templateParams, userParams); // precedence is described in #2131
params.showClass = Object.assign({}, defaultParams.showClass, params.showClass);
params.hideClass = Object.assign({}, defaultParams.hideClass, params.hideClass);
if (params.animation === false) {
params.showClass = {
backdrop: 'swal2-noanimation'
};
params.hideClass = {};
}
return params;
};
/**
* @param {SweetAlert} instance
* @returns {DomCache}
*/
var populateDomCache = function populateDomCache(instance) {
var domCache =
/** @type {DomCache} */
{
popup:
/** @type {HTMLElement} */
getPopup(),
container:
/** @type {HTMLElement} */
getContainer(),
actions:
/** @type {HTMLElement} */
getActions(),
confirmButton:
/** @type {HTMLElement} */
getConfirmButton(),
denyButton:
/** @type {HTMLElement} */
getDenyButton(),
cancelButton:
/** @type {HTMLElement} */
getCancelButton(),
loader:
/** @type {HTMLElement} */
getLoader(),
closeButton:
/** @type {HTMLElement} */
getCloseButton(),
validationMessage:
/** @type {HTMLElement} */
getValidationMessage(),
progressSteps:
/** @type {HTMLElement} */
getProgressSteps()
};
privateProps.domCache.set(instance, domCache);
return domCache;
};
/**
* @param {GlobalState} globalState
* @param {SweetAlertOptions} innerParams
* @param {(dismiss: DismissReason) => void} dismissWith
*/
var setupTimer = function setupTimer(globalState, innerParams, dismissWith) {
var timerProgressBar = getTimerProgressBar();
hide(timerProgressBar);
if (innerParams.timer) {
globalState.timeout = new Timer(function () {
dismissWith('timer');
delete globalState.timeout;
}, innerParams.timer);
if (innerParams.timerProgressBar && timerProgressBar) {
show(timerProgressBar);
applyCustomClass(timerProgressBar, innerParams, 'timerProgressBar');
setTimeout(function () {
if (globalState.timeout && globalState.timeout.running) {
// timer can be already stopped or unset at this point
animateTimerProgressBar(
/** @type {number} */
innerParams.timer);
}
});
}
}
};
/**
* Initialize focus in the popup:
*
* 1. If `toast` is `true`, don't steal focus from the document.
* 2. Else if there is an [autofocus] element, focus it.
* 3. Else if `focusConfirm` is `true` and confirm button is visible, focus it.
* 4. Else if `focusDeny` is `true` and deny button is visible, focus it.
* 5. Else if `focusCancel` is `true` and cancel button is visible, focus it.
* 6. Else focus the first focusable element in a popup (if any).
*
* @param {DomCache} domCache
* @param {SweetAlertOptions} innerParams
*/
var initFocus = function initFocus(domCache, innerParams) {
if (innerParams.toast) {
return;
} // TODO: this is dumb, remove `allowEnterKey` param in the next major version
if (!callIfFunction(innerParams.allowEnterKey)) {
warnAboutDeprecation('allowEnterKey');
blurActiveElement();
return;
}
if (focusAutofocus(domCache)) {
return;
}
if (focusButton(domCache, innerParams)) {
return;
}
setFocus(-1, 1);
};
/**
* @param {DomCache} domCache
* @returns {boolean}
*/
var focusAutofocus = function focusAutofocus(domCache) {
var autofocusElements = Array.from(domCache.popup.querySelectorAll('[autofocus]'));
for (var _i8 = 0, _autofocusElements = autofocusElements; _i8 < _autofocusElements.length; _i8++) {
var autofocusElement = _autofocusElements[_i8];
if (autofocusElement instanceof HTMLElement && isVisible$1(autofocusElement)) {
autofocusElement.focus();
return true;
}
}
return false;
};
/**
* @param {DomCache} domCache
* @param {SweetAlertOptions} innerParams
* @returns {boolean}
*/
var focusButton = function focusButton(domCache, innerParams) {
if (innerParams.focusDeny && isVisible$1(domCache.denyButton)) {
domCache.denyButton.focus();
return true;
}
if (innerParams.focusCancel && isVisible$1(domCache.cancelButton)) {
domCache.cancelButton.focus();
return true;
}
if (innerParams.focusConfirm && isVisible$1(domCache.confirmButton)) {
domCache.confirmButton.focus();
return true;
}
return false;
};
var blurActiveElement = function blurActiveElement() {
if (document.activeElement instanceof HTMLElement && typeof document.activeElement.blur === 'function') {
document.activeElement.blur();
}
}; // Assign instance methods from src/instanceMethods/*.js to prototype
SweetAlert.prototype.disableButtons = disableButtons;
SweetAlert.prototype.enableButtons = enableButtons;
SweetAlert.prototype.getInput = getInput;
SweetAlert.prototype.disableInput = disableInput;
SweetAlert.prototype.enableInput = enableInput;
SweetAlert.prototype.hideLoading = hideLoading;
SweetAlert.prototype.disableLoading = hideLoading;
SweetAlert.prototype.showValidationMessage = showValidationMessage;
SweetAlert.prototype.resetValidationMessage = resetValidationMessage;
SweetAlert.prototype.close = close;
SweetAlert.prototype.closePopup = close;
SweetAlert.prototype.closeModal = close;
SweetAlert.prototype.closeToast = close;
SweetAlert.prototype.rejectPromise = rejectPromise;
SweetAlert.prototype.update = update;
SweetAlert.prototype._destroy = _destroy; // Assign static methods from src/staticMethods/*.js to constructor
Object.assign(SweetAlert, staticMethods); // Proxy to instance methods to constructor, for now, for backwards compatibility
Object.keys(instanceMethods).forEach(function (key) {
/**
* @param {...(SweetAlertOptions | string | undefined)} args
* @returns {SweetAlertResult | Promise | undefined}
*/
// @ts-ignore: Dynamic property assignment for backwards compatibility
SweetAlert[key] = function () {
// @ts-ignore
if (currentInstance && currentInstance[key]) {
var _currentInstance;
// @ts-ignore
return (_currentInstance = currentInstance)[key].apply(_currentInstance, arguments);
}
return undefined;
};
});
SweetAlert.DismissReason = DismissReason;
SweetAlert.version = '11.26.18';
var Swal = SweetAlert; // @ts-ignore
Swal["default"] = Swal;
return Swal;
});
if (typeof this !== 'undefined' && this.Sweetalert2) {
this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.Sweetalert2;
}
"undefined" != typeof document && function (e, t) {
var n = e.createElement("style");
if (e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = t);else try {
n.innerHTML = t;
} catch (e) {
n.innerText = t;
}
}(document, ":root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:\"top-start top top-end\" \"center-start center center-end\" \"bottom-start bottom-center bottom-end\";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}");
/***/
},
/***/
"PTj7":
/***/
function PTj7(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return GalleryComponent;
});
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("fXoL");
/* harmony import */
var src_app_Shared_Service_achievement_award_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("DiM6");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("qVlC");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("jhN1");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_app_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("Sy1n");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("LYBR");
/* harmony import */
var _loader_loader_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("kQyY");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("ofXK");
/* harmony import */
var ngx_pagination__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("oOf3");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("3Pt+");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("GmSP");
/* harmony import */
var src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("/9+q");
function GalleryComponent_span_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3660 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r3660.translate.currentLang != "hi" ? ctx_r3660.pageTitle == null ? null : ctx_r3660.pageTitle.NameEnglish : ctx_r3660.pageTitle == null ? null : ctx_r3660.pageTitle.NameHindi);
}
}
function GalleryComponent_span_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function GalleryComponent_div_14_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3668 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r3668.translate.currentLang != "hi" ? ctx_r3668.pageTitle == null ? null : ctx_r3668.pageTitle.NameEnglish : ctx_r3668.pageTitle == null ? null : ctx_r3668.pageTitle.NameHindi);
}
}
function GalleryComponent_div_14_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function GalleryComponent_div_14_ng_container_5_div_3_ul_3_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
var _r3683 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "a", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_14_ng_container_5_div_3_ul_3_ng_container_1_li_1_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3683);
var ctx_r3682 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](6);
return ctx_r3682._commonService.onImageError($event, "assets/images/default.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var imgSrc_r3679 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r3685 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
var i_r3676 = ctx_r3685.index;
var items_r3675 = ctx_r3685.$implicit;
var ctx_r3681 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("href", imgSrc_r3679, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵattributeInterpolate1 */
"Jb"]("data-lightbox", "images_", i_r3676, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3681.translate.currentLang == "en" ? items_r3675.Achievement : items_r3675.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3681.translate.currentLang == "en" ? items_r3675.Achievement : items_r3675.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3681.translate.currentLang == "en" ? items_r3675.Achievement : items_r3675.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", imgSrc_r3679, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function GalleryComponent_div_14_ng_container_5_div_3_ul_3_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](1, GalleryComponent_div_14_ng_container_5_div_3_ul_3_ng_container_1_li_1_Template, 3, 6, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var j_r3680 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", j_r3680 > 0);
}
}
function GalleryComponent_div_14_ng_container_5_div_3_ul_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "ul", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](1, GalleryComponent_div_14_ng_container_5_div_3_ul_3_ng_container_1_Template, 2, 1, "ng-container", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var items_r3675 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", items_r3675.ImageFiles);
}
}
function GalleryComponent_div_14_ng_container_5_div_3_Template(rf, ctx) {
if (rf & 1) {
var _r3688 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "a", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_14_ng_container_5_div_3_Template_a_error_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3688);
var ctx_r3687 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3687._commonService.onImageError($event, "assets/images/default.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_14_ng_container_5_div_3_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3688);
var ctx_r3689 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3689._commonService.onImageError($event, "assets/images/default.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_14_ng_container_5_div_3_ul_3_Template, 2, 1, "ul", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](4, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](6, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](7, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](10, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var items_r3675 = ctx.$implicit;
var i_r3676 = ctx.index;
var ctx_r3673 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵattributeInterpolate1 */
"Jb"]("data-lightbox", "images_", i_r3676, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3673.translate.currentLang == "en" ? items_r3675.Achievement : items_r3675.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("href", items_r3675.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3673.translate.currentLang == "en" ? items_r3675.Achievement : items_r3675.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3673.translate.currentLang == "en" ? items_r3675.Achievement : items_r3675.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", items_r3675.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", items_r3675.ImageFiles && items_r3675.ImageFiles.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r3673.translate.currentLang == "en" ? (items_r3675 == null ? null : items_r3675.Achievement.length) > 80 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](6, 10, items_r3675 == null ? null : items_r3675.Achievement, 0, 80) + "..." : items_r3675 == null ? null : items_r3675.Achievement : (items_r3675 == null ? null : items_r3675.AchievementHindi.length) > 80 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](7, 14, items_r3675 == null ? null : items_r3675.AchievementHindi, 0, 80) + "..." : items_r3675 == null ? null : items_r3675.AchievementHindi, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](10, 18, "RecordEntryNo_txt"), " : ", items_r3675 == null ? null : items_r3675.Id, "");
}
}
function GalleryComponent_div_14_ng_container_5_div_6_select_1_Template(rf, ctx) {
if (rf & 1) {
var _r3692 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "select", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("change", function GalleryComponent_div_14_ng_container_5_div_6_select_1_Template_select_change_0_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3692);
var ctx_r3691 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](4);
return ctx_r3691.posterChangePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](4, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](5, "15");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](6, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](7, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](8, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](9, "60");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](10, "option", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](11, "120");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3690 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r3690.posterTotalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](3, 2, "All_txt"));
}
}
function GalleryComponent_div_14_ng_container_5_div_6_Template(rf, ctx) {
if (rf & 1) {
var _r3694 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](1, GalleryComponent_div_14_ng_container_5_div_6_select_1_Template, 12, 4, "select", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "pagination-controls", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("pageChange", function GalleryComponent_div_14_ng_container_5_div_6_Template_pagination_controls_pageChange_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3694);
var ctx_r3693 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3693.posterGetNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3674 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3674.posterTotalRecords > ctx_r3674.posterIndexModel.PageSize);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](3, 3, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](4, 5, "Next_txt"));
}
}
function GalleryComponent_div_14_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_14_ng_container_5_div_3_Template, 11, 20, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_14_ng_container_5_div_6_Template, 5, 7, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r3670 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind2 */
"pc"](4, 2, ctx_r3670.posterModel, ctx_r3670.posterPagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3670.posterTotalRecords > 15);
}
}
function GalleryComponent_div_14_app_mini_loader_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function GalleryComponent_div_14_app_no_records_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 41);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
function GalleryComponent_div_14_Template(rf, ctx) {
if (rf & 1) {
var _r3696 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "h1", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_14_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3696);
var ctx_r3695 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
return ctx_r3695._commonService.onImageError($event, "assets/images/Poster.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_14_span_3_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_14_span_4_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_14_ng_container_5_Template, 7, 5, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_14_app_mini_loader_6_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_14_app_no_records_7_Template, 1, 1, "app-no-records", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3662 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3662.pageTitle ? ctx_r3662.translate.currentLang != "hi" ? ctx_r3662.pageTitle == null ? null : ctx_r3662.pageTitle.NameEnglish : ctx_r3662.pageTitle == null ? null : ctx_r3662.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3662.pageTitle ? ctx_r3662.translate.currentLang != "hi" ? ctx_r3662.pageTitle == null ? null : ctx_r3662.pageTitle.NameEnglish : ctx_r3662.pageTitle == null ? null : ctx_r3662.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", ctx_r3662.pageTitle == null ? null : ctx_r3662.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3662.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3662.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3662.posterModel && (ctx_r3662.posterModel == null ? null : ctx_r3662.posterModel.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3662.posterModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3662.posterModel && ctx_r3662.posterModel.length == 0);
}
}
function GalleryComponent_div_15_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3697 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r3697.translate.currentLang != "hi" ? ctx_r3697.pageTitle == null ? null : ctx_r3697.pageTitle.NameEnglish : ctx_r3697.pageTitle == null ? null : ctx_r3697.pageTitle.NameHindi);
}
}
function GalleryComponent_div_15_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_container_3_Template(rf, ctx) {
if (rf & 1) {
var _r3714 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "a", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "video", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("playing", function GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_container_3_Template_video_playing_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3714);
var ctx_r3713 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](5);
return ctx_r3713.onMediaPlaying($event, false);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](3, "source", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r3715 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
var items_r3704 = ctx_r3715.$implicit;
var i_r3705 = ctx_r3715.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("href", items_r3704.Url, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate1 */
"vc"]("id", "my_video_", i_r3705, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("poster", items_r3704.ThumbnailPath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("src", items_r3704.Url, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate1 */
"vc"]("type", "video/", items_r3704.Url.split(".")[items_r3704.Url.split(".").length - 1], "");
}
}
function GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_template_4_Template(rf, ctx) {
if (rf & 1) {
var _r3717 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "a", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "iframe", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("onclick", function GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_template_4_Template_iframe_onclick_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3717);
var ctx_r3716 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](5);
return ctx_r3716.onMediaPlaying($event, false);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var items_r3704 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2).$implicit;
var ctx_r3709 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("href", ctx_r3709.SafeUrl(items_r3704.YoutubeURL ? items_r3704.YoutubeURL : items_r3704.Url), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", items_r3704.safeUrl, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeResourceUrl */
"Oc"]);
}
}
function GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_container_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](3, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var items_r3704 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2).$implicit;
var ctx_r3710 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3710.translate.currentLang == "en" ? items_r3704.SubjectHindi : items_r3704.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r3710.translate.currentLang == "hi" ? items_r3704.AchievementHindi.length > 60 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](3, 2, items_r3704.AchievementHindi, 0, 60) + "..." : items_r3704.AchievementHindi : items_r3704.SubjectHindi.length > 60 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](4, 6, items_r3704.SubjectHindi, 0, 60) + "..." : items_r3704.SubjectHindi, " ");
}
}
function GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_template_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](2, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](3, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var items_r3704 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2).$implicit;
var ctx_r3712 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3712.translate.currentLang == "en" ? items_r3704.Achievement : items_r3704.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r3712.translate.currentLang == "hi" ? items_r3704.AchievementHindi.length > 60 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](2, 2, items_r3704.AchievementHindi, 0, 60) + "..." : items_r3704.AchievementHindi : items_r3704.Achievement.length > 60 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](3, 6, items_r3704.Achievement, 0, 60) + "..." : items_r3704.Achievement, " ");
}
}
function GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_container_3_Template, 4, 5, "ng-container", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_template_4_Template, 2, 2, "ng-template", null, 48, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_container_6_Template, 5, 10, "ng-container", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_ng_template_7_Template, 4, 10, "ng-template", null, 49, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](11, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var _r3708 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵreference */
"Kc"](5);
var _r3711 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵreference */
"Kc"](8);
var items_r3704 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r3706 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3706.translate.currentLang == "en" ? items_r3704.Achievement : items_r3704.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3706.isExtenstionUrl(items_r3704.Url) == true)("ngIfElse", _r3708);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3706.departmentCode == 1882)("ngIfElse", _r3711);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](11, 7, "RecordEntryNo_txt"), " : ", items_r3704 == null ? null : items_r3704.Id, "");
}
}
function GalleryComponent_div_15_ng_container_5_ng_container_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](1, GalleryComponent_div_15_ng_container_5_ng_container_2_div_1_Template, 12, 9, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var items_r3704 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", (items_r3704.Url == null ? null : items_r3704.Url.length) > 0 || items_r3704.YoutubeURL);
}
}
function GalleryComponent_div_15_ng_container_5_div_4_Template(rf, ctx) {
if (rf & 1) {
var _r3723 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "select", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("change", function GalleryComponent_div_15_ng_container_5_div_4_Template_select_change_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3723);
var ctx_r3722 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3722.videoChangePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](6, "15");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](8, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10, "60");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "option", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](12, "120");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "pagination-controls", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("pageChange", function GalleryComponent_div_15_ng_container_5_div_4_Template_pagination_controls_pageChange_13_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3723);
var ctx_r3724 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3724.videoGetNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](15, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3703 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r3703.videoTotalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](4, 4, "All_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](14, 6, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](15, 8, "Next_txt"));
}
}
function GalleryComponent_div_15_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](2, GalleryComponent_div_15_ng_container_5_ng_container_2_Template, 2, 1, "ng-container", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](3, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_15_ng_container_5_div_4_Template, 16, 10, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r3699 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind2 */
"pc"](3, 2, ctx_r3699.videoModel, ctx_r3699.videoPagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3699.videoTotalRecords > 15);
}
}
function GalleryComponent_div_15_app_mini_loader_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function GalleryComponent_div_15_app_no_records_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 41);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
function GalleryComponent_div_15_Template(rf, ctx) {
if (rf & 1) {
var _r3726 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "h1", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_15_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3726);
var ctx_r3725 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
return ctx_r3725._commonService.onImageError($event, "assets/images/Video.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_15_span_3_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_15_span_4_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_15_ng_container_5_Template, 5, 5, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_15_app_mini_loader_6_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_15_app_no_records_7_Template, 1, 1, "app-no-records", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3663 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3663.pageTitle ? ctx_r3663.translate.currentLang != "hi" ? ctx_r3663.pageTitle == null ? null : ctx_r3663.pageTitle.NameEnglish : ctx_r3663.pageTitle == null ? null : ctx_r3663.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3663.pageTitle ? ctx_r3663.translate.currentLang != "hi" ? ctx_r3663.pageTitle == null ? null : ctx_r3663.pageTitle.NameEnglish : ctx_r3663.pageTitle == null ? null : ctx_r3663.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", ctx_r3663.pageTitle == null ? null : ctx_r3663.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3663.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3663.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3663.videoModel && (ctx_r3663.videoModel == null ? null : ctx_r3663.videoModel.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3663.videoModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3663.videoModel && ctx_r3663.videoModel.length == 0);
}
}
function GalleryComponent_div_16_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3727 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r3727.translate.currentLang != "hi" ? ctx_r3727.pageTitle == null ? null : ctx_r3727.pageTitle.NameEnglish : ctx_r3727.pageTitle == null ? null : ctx_r3727.pageTitle.NameHindi);
}
}
function GalleryComponent_div_16_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function GalleryComponent_div_16_ng_container_5_ng_container_2_div_1_Template(rf, ctx) {
if (rf & 1) {
var _r3737 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](2, "img", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "audio", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("playing", function GalleryComponent_div_16_ng_container_5_ng_container_2_div_1_Template_audio_playing_3_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3737);
var ctx_r3736 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](4);
return ctx_r3736.onMediaPlaying($event, true);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](4, "source", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](7, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](8, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](11, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var items_r3734 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r3735 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3735.translate.currentLang == "en" ? items_r3734.Achievement : items_r3734.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3735.translate.currentLang == "en" ? items_r3734.Achievement : items_r3734.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3735.translate.currentLang == "en" ? items_r3734.Achievement : items_r3734.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("src", items_r3734.Url, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3735.translate.currentLang == "en" ? items_r3734.Achievement : items_r3734.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r3735.translate.currentLang == "hi" ? items_r3734.AchievementHindi.length > 60 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](7, 8, items_r3734.AchievementHindi, 0, 60) + "..." : items_r3734.AchievementHindi : items_r3734.Achievement.length > 60 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](8, 12, items_r3734.Achievement, 0, 60) + "..." : items_r3734.Achievement, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](11, 16, "RecordEntryNo_txt"), " : ", items_r3734 == null ? null : items_r3734.Id, "");
}
}
function GalleryComponent_div_16_ng_container_5_ng_container_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](1, GalleryComponent_div_16_ng_container_5_ng_container_2_div_1_Template, 12, 18, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var items_r3734 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", items_r3734.Url != undefined && (items_r3734.Url == null ? null : items_r3734.Url.length) > 0);
}
}
function GalleryComponent_div_16_ng_container_5_div_4_Template(rf, ctx) {
if (rf & 1) {
var _r3740 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "select", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("change", function GalleryComponent_div_16_ng_container_5_div_4_Template_select_change_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3740);
var ctx_r3739 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3739.audioChangePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](6, "15");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](8, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10, "60");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "option", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](12, "120");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "pagination-controls", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("pageChange", function GalleryComponent_div_16_ng_container_5_div_4_Template_pagination_controls_pageChange_13_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3740);
var ctx_r3741 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3741.audioGetNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](15, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3733 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r3733.audioTotalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](4, 4, "All_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](14, 6, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](15, 8, "Next_txt"));
}
}
function GalleryComponent_div_16_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](2, GalleryComponent_div_16_ng_container_5_ng_container_2_Template, 2, 1, "ng-container", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](3, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_16_ng_container_5_div_4_Template, 16, 10, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r3729 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind2 */
"pc"](3, 2, ctx_r3729.audioModel, ctx_r3729.audioPagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3729.audioTotalRecords > 15);
}
}
function GalleryComponent_div_16_app_mini_loader_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function GalleryComponent_div_16_app_no_records_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-no-records");
}
}
function GalleryComponent_div_16_Template(rf, ctx) {
if (rf & 1) {
var _r3743 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "h1", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_16_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3743);
var ctx_r3742 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
return ctx_r3742._commonService.onImageError($event, "assets/images/Audio.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_16_span_3_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_16_span_4_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_16_ng_container_5_Template, 5, 5, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_16_app_mini_loader_6_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_16_app_no_records_7_Template, 1, 0, "app-no-records", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3664 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3664.pageTitle ? ctx_r3664.translate.currentLang != "hi" ? ctx_r3664.pageTitle == null ? null : ctx_r3664.pageTitle.NameEnglish : ctx_r3664.pageTitle == null ? null : ctx_r3664.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3664.pageTitle ? ctx_r3664.translate.currentLang != "hi" ? ctx_r3664.pageTitle == null ? null : ctx_r3664.pageTitle.NameEnglish : ctx_r3664.pageTitle == null ? null : ctx_r3664.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", ctx_r3664.pageTitle == null ? null : ctx_r3664.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3664.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3664.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3664.audioModel && (ctx_r3664.audioModel == null ? null : ctx_r3664.audioModel.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3664.audioModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3664.audioModel && ctx_r3664.audioModel.length == 0);
}
}
function GalleryComponent_div_17_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3744 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r3744.translate.currentLang != "hi" ? ctx_r3744.pageTitle == null ? null : ctx_r3744.pageTitle.NameEnglish : ctx_r3744.pageTitle == null ? null : ctx_r3744.pageTitle.NameHindi);
}
}
function GalleryComponent_div_17_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function GalleryComponent_div_17_ng_container_5_div_3_Template(rf, ctx) {
if (rf & 1) {
var _r3753 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "a", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_17_ng_container_5_div_3_Template_a_error_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3753);
var ctx_r3752 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3752._commonService.onImageError($event, "assets/images/default.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_17_ng_container_5_div_3_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3753);
var ctx_r3754 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3754._commonService.onImageError($event, "assets/images/default.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var items_r3751 = ctx.$implicit;
var ctx_r3749 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3749.translate.currentLang == "en" ? items_r3751.Achievement : items_r3751.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("href", items_r3751.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3749.translate.currentLang == "en" ? items_r3751.Achievement : items_r3751.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3749.translate.currentLang == "en" ? items_r3751.Achievement : items_r3751.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", items_r3751.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](5, 7, "RecordEntryNo_txt"), " : ", items_r3751 == null ? null : items_r3751.Id, "");
}
}
function GalleryComponent_div_17_ng_container_5_div_5_Template(rf, ctx) {
if (rf & 1) {
var _r3756 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "select", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("change", function GalleryComponent_div_17_ng_container_5_div_5_Template_select_change_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3756);
var ctx_r3755 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3755.advertisementChangePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](6, "15");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](8, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10, "60");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "option", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](12, "120");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "pagination-controls", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("pageChange", function GalleryComponent_div_17_ng_container_5_div_5_Template_pagination_controls_pageChange_13_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3756);
var ctx_r3757 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3757.advertisementGetNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](15, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3750 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r3750.advertisementTotalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](4, 4, "All_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](14, 6, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](15, 8, "Next_txt"));
}
}
function GalleryComponent_div_17_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_17_ng_container_5_div_3_Template, 6, 9, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_17_ng_container_5_div_5_Template, 16, 10, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r3746 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind2 */
"pc"](4, 2, ctx_r3746.advertisementModel, ctx_r3746.advertisementPagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3746.advertisementTotalRecords > 15);
}
}
function GalleryComponent_div_17_app_mini_loader_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function GalleryComponent_div_17_app_no_records_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 41);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
function GalleryComponent_div_17_Template(rf, ctx) {
if (rf & 1) {
var _r3759 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "h1", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_17_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3759);
var ctx_r3758 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
return ctx_r3758._commonService.onImageError($event, "assets/images/ADVT.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_17_span_3_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_17_span_4_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_17_ng_container_5_Template, 6, 5, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_17_app_mini_loader_6_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_17_app_no_records_7_Template, 1, 1, "app-no-records", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3665 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3665.pageTitle ? ctx_r3665.translate.currentLang != "hi" ? ctx_r3665.pageTitle == null ? null : ctx_r3665.pageTitle.NameEnglish : ctx_r3665.pageTitle == null ? null : ctx_r3665.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3665.pageTitle ? ctx_r3665.translate.currentLang != "hi" ? ctx_r3665.pageTitle == null ? null : ctx_r3665.pageTitle.NameEnglish : ctx_r3665.pageTitle == null ? null : ctx_r3665.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", ctx_r3665.pageTitle == null ? null : ctx_r3665.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3665.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3665.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3665.advertisementModel && (ctx_r3665.advertisementModel == null ? null : ctx_r3665.advertisementModel.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3665.advertisementModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3665.advertisementModel && ctx_r3665.advertisementModel.length == 0);
}
}
function GalleryComponent_div_18_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3760 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r3760.translate.currentLang != "hi" ? ctx_r3760.pageTitle == null ? null : ctx_r3760.pageTitle.NameEnglish : ctx_r3760.pageTitle == null ? null : ctx_r3760.pageTitle.NameHindi);
}
}
function GalleryComponent_div_18_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function GalleryComponent_div_18_ng_container_5_div_3_Template(rf, ctx) {
if (rf & 1) {
var _r3770 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "a", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_18_ng_container_5_div_3_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3770);
var ctx_r3769 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3769._commonService.onImageError($event, "assets/images/default.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](5, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](6, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](9, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var items_r3767 = ctx.$implicit;
var ctx_r3765 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3765.translate.currentLang == "en" ? items_r3767.Achievement : items_r3767.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("href", items_r3767.PdfFIleName, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3765.translate.currentLang == "en" ? items_r3767.Achievement : items_r3767.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3765.translate.currentLang == "en" ? items_r3767.Achievement : items_r3767.AchievementHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", items_r3767.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r3765.translate.currentLang == "en" ? (items_r3767 == null ? null : items_r3767.Achievement.length) > 80 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](5, 8, items_r3767 == null ? null : items_r3767.Achievement, 0, 80) + "..." : items_r3767 == null ? null : items_r3767.Achievement : (items_r3767 == null ? null : items_r3767.AchievementHindi.length) > 80 ? _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind3 */
"qc"](6, 12, items_r3767 == null ? null : items_r3767.AchievementHindi, 0, 80) + "..." : items_r3767 == null ? null : items_r3767.AchievementHindi, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](9, 16, "RecordEntryNo_txt"), " : ", items_r3767 == null ? null : items_r3767.Id, "");
}
}
function GalleryComponent_div_18_ng_container_5_div_5_Template(rf, ctx) {
if (rf & 1) {
var _r3772 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "select", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("change", function GalleryComponent_div_18_ng_container_5_div_5_Template_select_change_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3772);
var ctx_r3771 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3771.attachmentChangePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](6, "15");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](8, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10, "60");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "option", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](12, "120");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "pagination-controls", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("pageChange", function GalleryComponent_div_18_ng_container_5_div_5_Template_pagination_controls_pageChange_13_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3772);
var ctx_r3773 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3773.attachmentGetNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](15, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3766 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r3766.attachmentTotalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](4, 4, "All_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](14, 6, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](15, 8, "Next_txt"));
}
}
function GalleryComponent_div_18_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_18_ng_container_5_div_3_Template, 10, 18, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_18_ng_container_5_div_5_Template, 16, 10, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r3762 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind2 */
"pc"](4, 2, ctx_r3762.attachmentModel, ctx_r3762.attachmentPagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3762.attachmentTotalRecords > 15);
}
}
function GalleryComponent_div_18_app_mini_loader_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function GalleryComponent_div_18_app_no_records_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 41);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
function GalleryComponent_div_18_Template(rf, ctx) {
if (rf & 1) {
var _r3775 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "h1", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_18_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3775);
var ctx_r3774 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
return ctx_r3774._commonService.onImageError($event, "assets/images/ADVT.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_18_span_3_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_18_span_4_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_18_ng_container_5_Template, 6, 5, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_18_app_mini_loader_6_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_18_app_no_records_7_Template, 1, 1, "app-no-records", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3666 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3666.pageTitle ? ctx_r3666.translate.currentLang != "hi" ? ctx_r3666.pageTitle == null ? null : ctx_r3666.pageTitle.NameEnglish : ctx_r3666.pageTitle == null ? null : ctx_r3666.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3666.pageTitle ? ctx_r3666.translate.currentLang != "hi" ? ctx_r3666.pageTitle == null ? null : ctx_r3666.pageTitle.NameEnglish : ctx_r3666.pageTitle == null ? null : ctx_r3666.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", ctx_r3666.pageTitle == null ? null : ctx_r3666.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3666.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3666.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3666.attachmentModel && (ctx_r3666.attachmentModel == null ? null : ctx_r3666.attachmentModel.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3666.attachmentModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3666.attachmentModel && ctx_r3666.attachmentModel.length == 0);
}
}
function GalleryComponent_div_19_span_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3776 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r3776.translate.currentLang != "hi" ? ctx_r3776.pageTitle == null ? null : ctx_r3776.pageTitle.NameEnglish : ctx_r3776.pageTitle == null ? null : ctx_r3776.pageTitle.NameHindi);
}
}
function GalleryComponent_div_19_span_4_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function GalleryComponent_div_19_ng_container_5_div_4_Template(rf, ctx) {
if (rf & 1) {
var _r3787 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "a", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("click", function GalleryComponent_div_19_ng_container_5_div_4_Template_a_click_1_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3787);
var item_r3784 = ctx.$implicit;
var ctx_r3786 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3786._commonService.setFocus("record_" + item_r3784.Id);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r3784 = ctx.$implicit;
var i_r3785 = ctx.index;
var ctx_r3781 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"](" ", (ctx_r3781.descriptionIndexModel.Page - 1) * ctx_r3781.descriptionIndexModel.PageSize + (i_r3785 + 1), ". ", ctx_r3781.translate.currentLang == "en" ? item_r3784.AchievementHindi : item_r3784.SubjectHindi ? item_r3784.SubjectHindi : item_r3784.AchievementHindi, " ");
}
}
function GalleryComponent_div_19_ng_container_5_div_6_div_7_Template(rf, ctx) {
if (rf & 1) {
var _r3793 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "a", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "img", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_19_ng_container_5_div_6_div_7_Template_img_error_3_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3793);
var ctx_r3792 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](4);
return ctx_r3792._commonService.onImageError($event, "assets/images/record-not-found.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r3788 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r3790 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r3788 == null ? null : item_r3788.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("src", item_r3788 == null ? null : item_r3788.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3790.translate.currentLang == "en" ? item_r3788.AchievementHindi : item_r3788.SubjectHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3790.translate.currentLang == "en" ? item_r3788.AchievementHindi : item_r3788.SubjectHindi);
}
}
function GalleryComponent_div_19_ng_container_5_div_6_div_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "a", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](3, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r3788 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r3788 == null ? null : item_r3788.PdfFIleName, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function GalleryComponent_div_19_ng_container_5_div_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](4, "h2", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](6, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_19_ng_container_5_div_6_div_7_Template, 4, 4, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](8, GalleryComponent_div_19_ng_container_5_div_6_div_8_Template, 4, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](9, "pre", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r3788 = ctx.$implicit;
var i_r3789 = ctx.index;
var ctx_r3782 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("id", "record_" + item_r3788.Id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"](" ", (ctx_r3782.descriptionIndexModel.Page - 1) * ctx_r3782.descriptionIndexModel.PageSize + (i_r3789 + 1), ". ", ctx_r3782.translate.currentLang == "en" ? item_r3788.AchievementHindi : item_r3788.SubjectHindi ? item_r3788.SubjectHindi : item_r3788.AchievementHindi, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", item_r3788 == null ? null : item_r3788.ImagePath);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", item_r3788 == null ? null : item_r3788.PdfFIleName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("innerHTML", ctx_r3782.translate.currentLang == "hi" ? item_r3788.EditorDetail : item_r3788.EditorDetailEnglish, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeHtml */
"Nc"]);
}
}
function GalleryComponent_div_19_ng_container_5_div_8_Template(rf, ctx) {
if (rf & 1) {
var _r3797 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "select", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("change", function GalleryComponent_div_19_ng_container_5_div_8_Template_select_change_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3797);
var ctx_r3796 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3796.descriptionChangePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](6, "15");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](8, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10, "60");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "option", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](12, "120");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "pagination-controls", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("pageChange", function GalleryComponent_div_19_ng_container_5_div_8_Template_pagination_controls_pageChange_13_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3797);
var ctx_r3798 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r3798.descriptionGetNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](15, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3783 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r3783.descriptionTotalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](4, 4, "All_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](14, 6, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](15, 8, "Next_txt"));
}
}
function GalleryComponent_div_19_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_19_ng_container_5_div_4_Template, 3, 2, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_19_ng_container_5_div_6_Template, 10, 6, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](7, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](8, GalleryComponent_div_19_ng_container_5_div_8_Template, 16, 10, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r3778 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r3778.descriptionModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind2 */
"pc"](7, 3, ctx_r3778.descriptionModel, ctx_r3778.descriptionPagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3778.descriptionTotalRecords > 15);
}
}
function GalleryComponent_div_19_app_mini_loader_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function GalleryComponent_div_19_app_no_records_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 41);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
function GalleryComponent_div_19_Template(rf, ctx) {
if (rf & 1) {
var _r3800 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "h1", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function GalleryComponent_div_19_Template_img_error_2_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r3800);
var ctx_r3799 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
return ctx_r3799._commonService.onImageError($event, "assets/images/ADVT.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](3, GalleryComponent_div_19_span_3_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, GalleryComponent_div_19_span_4_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](5, GalleryComponent_div_19_ng_container_5_Template, 9, 6, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, GalleryComponent_div_19_app_mini_loader_6_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, GalleryComponent_div_19_app_no_records_7_Template, 1, 1, "app-no-records", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r3667 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r3667.pageTitle ? ctx_r3667.translate.currentLang != "hi" ? ctx_r3667.pageTitle == null ? null : ctx_r3667.pageTitle.NameEnglish : ctx_r3667.pageTitle == null ? null : ctx_r3667.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r3667.pageTitle ? ctx_r3667.translate.currentLang != "hi" ? ctx_r3667.pageTitle == null ? null : ctx_r3667.pageTitle.NameEnglish : ctx_r3667.pageTitle == null ? null : ctx_r3667.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", ctx_r3667.pageTitle == null ? null : ctx_r3667.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3667.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3667.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3667.descriptionModel && (ctx_r3667.descriptionModel == null ? null : ctx_r3667.descriptionModel.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx_r3667.descriptionModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r3667.descriptionModel && ctx_r3667.descriptionModel.length == 0);
}
}
var GalleryComponent =
/*@__PURE__*/
function () {
var GalleryComponent =
/*#__PURE__*/
function () {
function GalleryComponent(achievementAwardService, _dptDistrictWebsiteService, translate, sanitizer, route, _app, _route, _titleService, _achService, _commonService) {
_classCallCheck(this, GalleryComponent);
this.achievementAwardService = achievementAwardService;
this._dptDistrictWebsiteService = _dptDistrictWebsiteService;
this.translate = translate;
this.sanitizer = sanitizer;
this.route = route;
this._app = _app;
this._route = _route;
this._titleService = _titleService;
this._achService = _achService;
this._commonService = _commonService;
this.pageName = "";
this.posterIndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.posterTotalRecords = 0;
this.posterPagerConfig = {
id: 'poster-paging',
itemsPerPage: this.posterIndexModel.PageSize,
currentPage: this.posterIndexModel.Page,
totalItems: this.posterTotalRecords
};
this.videoIndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.videoTotalRecords = 0;
this.videoPagerConfig = {
id: 'video-paging',
itemsPerPage: this.videoIndexModel.PageSize,
currentPage: this.videoIndexModel.Page,
totalItems: this.videoTotalRecords
};
this.audioIndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.audioTotalRecords = 0;
this.audioPagerConfig = {
id: 'audio-paging',
itemsPerPage: this.audioIndexModel.PageSize,
currentPage: this.audioIndexModel.Page,
totalItems: this.audioTotalRecords
};
this.advertisementIndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.advertisementTotalRecords = 0;
this.advertisementPagerConfig = {
id: 'advertisement-paging',
itemsPerPage: this.advertisementIndexModel.PageSize,
currentPage: this.advertisementIndexModel.Page,
totalItems: this.advertisementTotalRecords
};
this.attachmentIndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.attachmentTotalRecords = 0;
this.attachmentPagerConfig = {
id: 'attachment-paging',
itemsPerPage: this.attachmentIndexModel.PageSize,
currentPage: this.attachmentIndexModel.Page,
totalItems: this.attachmentTotalRecords
};
this.descriptionIndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.descriptionTotalRecords = 0;
this.descriptionPagerConfig = {
id: 'description-paging',
itemsPerPage: this.descriptionIndexModel.PageSize,
currentPage: this.descriptionIndexModel.Page,
totalItems: this.descriptionTotalRecords
};
this.isShowPoster = false;
this.isShowVideo = false;
this.isShowAudio = false;
this.isShowAdvertisment = false;
this.isShowAttachment = false;
this.isShowDescription = false;
this.departmentCode = 0;
}
return _createClass2(GalleryComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this96 = this;
this._route.paramMap.subscribe(function (params) {
_this96.pageTitle = undefined;
var url = _this96.route.url.replace('/', '').split('/');
console.log('url', url); // this.departmentCode = this._commonService.IsDistrict() ? 0 : this._commonService.GetWebDistDeptCode();
// let _dptCode = this._route.snapshot.params.dptCode;
// if (_dptCode && !this._commonService.IsDistrict()) {
// this.departmentCode = Number(_dptCode);
// }
_this96.departmentCode = _this96._commonService.GetWebDistDeptCode();
var _dptCode = _this96._route.snapshot.params.dptCode;
if (_dptCode) {
_this96.departmentCode = Number(_dptCode);
}
var _catCode = _this96._route.snapshot.params.catCode;
if (_catCode) {
_this96.catCode = Number(_catCode);
}
var _subCatCode = _this96._route.snapshot.params.subCatCode;
if (_subCatCode) {
_this96.subCatCode = Number(_subCatCode);
}
var _submenuCode = _this96._route.snapshot.params.submenuCode;
if (_submenuCode) {
_this96.submenuCode = Number(_submenuCode);
}
var _pageName = _this96._route.snapshot.params.pageName;
if (_pageName) {
_this96.pageName = _pageName;
} // else if (this.submenuCode >= 0 && this.subCatCode >= 0) {
// this.pageName = this.subCatCode ? url[url.length - 6] : (this.catCode ? url[url.length - 5] : url[url.length - 4]);
// }
else if (_this96.submenuCode >= 0) {
_this96.pageName = _this96.subCatCode || _this96.subCatCode == 0 ? url[url.length - 5] : _this96.catCode || _this96.catCode == 0 ? url[url.length - 4] : url[url.length - 3];
} else {
_this96.pageName = _this96.subCatCode || _this96.subCatCode == 0 ? url[url.length - 4] : _this96.catCode || _this96.catCode == 0 ? url[url.length - 3] : url[url.length - 2];
}
_this96.getPageHeading();
_this96._commonService.SetWebTitle(_this96.translate.currentLang == 'hi' ? "गेलरी" : "Gallery");
_this96.getData();
});
}
}, {
key: "getPageHeading",
value: function getPageHeading() {
if (this.submenuCode > 0) {
this.getSubmenuDetail();
} else if (this.subCatCode > 0) {
this.getSubCategoryDetail();
} else {
this.getCategoryDetail();
}
}
}, {
key: "getSubmenuDetail",
value: function getSubmenuDetail() {
var _this97 = this;
this._dptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(function (res) {
if (res.IsSuccess) {
var submenu = res.Data;
if (submenu) {
_this97.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
_this97.pageTitle.NameEnglish = submenu.DisplayNameEnglish;
_this97.pageTitle.NameHindi = submenu.DisplayNameHindi;
_this97.pageTitle.ImagePath = submenu.IconImage;
_this97._commonService.SetWebTitle(_this97.translate.currentLang == 'hi' ? _this97.pageTitle.NameHindi : _this97.pageTitle.NameEnglish);
}
}
}, function (error) {});
}
}, {
key: "getData",
value: function getData() {
switch (this.pageName) {
case "video":
this._commonService.SetWebTitle(this.translate.currentLang == 'hi' ? "वीडियो" : "Video");
this.isShowVideo = true;
this.videoIndexModel.PageSize = 15;
this.videoListData();
break;
case "audio":
this._commonService.SetWebTitle(this.translate.currentLang == 'hi' ? "ऑडियो" : "Audio");
this.isShowAudio = true;
this.audioIndexModel.PageSize = 15;
this.audioListData();
break;
case "cm-speech":
this._commonService.SetWebTitle(this.translate.currentLang == 'hi' ? "ऑडियो" : "Audio");
this.isShowAudio = true;
this.audioIndexModel.PageSize = 15;
this.audioListData();
break;
case "poster":
this._commonService.SetWebTitle(this.translate.currentLang == 'hi' ? "पोस्टर" : "Poster");
this.isShowPoster = true;
this.posterIndexModel.PageSize = 15;
this.posterListData();
break;
case "images":
case "photo-gallery":
this._commonService.SetWebTitle(this.translate.currentLang == 'hi' ? "फ़ोटो गेलरी" : "Photo Gallery");
this.isShowPoster = true;
this.posterIndexModel.PageSize = 15;
this.posterListData();
break;
case "advertisement":
this._commonService.SetWebTitle(this.translate.currentLang == 'hi' ? "विज्ञापन" : "Advertisement");
this.isShowAdvertisment = true;
this.advertisementIndexModel.PageSize = 15;
this.advertisementListData();
break;
case "attachments":
this.isShowAttachment = true;
this.attachmentIndexModel.PageSize = 15;
this.getAttachmentsData();
break;
case "description-list":
this.isShowDescription = true;
this.descriptionIndexModel.PageSize = 15;
this.getDescriptionData();
break;
default:
this.route.navigate(["home"]);
break;
}
}
}, {
key: "getCategoryDetail",
value: function getCategoryDetail() {
var _this98 = this;
this._achService.GetAcievementCatDetail(this.catCode).subscribe(function (res) {
if (res.IsSuccess) {
_this98.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
var catDetail = res.Data;
_this98.pageTitle.NameEnglish = catDetail.SubMenuNameEnglish;
_this98.pageTitle.NameHindi = catDetail.SubMenuNameHindi;
_this98.pageTitle.ImagePath = catDetail.ImagePath;
_this98._commonService.SetWebTitle(_this98.translate.currentLang == 'hi' ? _this98.pageTitle.NameHindi : _this98.pageTitle.NameEnglish);
}
}, function (error) {
console.error(error);
});
}
}, {
key: "getSubCategoryDetail",
value: function getSubCategoryDetail() {
var _this99 = this;
this._achService.GetAcievementSubCatDetail(this.subCatCode).subscribe(function (res) {
if (res.IsSuccess) {
_this99.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
var subCatDetail = res.Data;
_this99.pageTitle.NameEnglish = subCatDetail.Title;
_this99.pageTitle.NameHindi = subCatDetail.TitleHindi;
_this99.pageTitle.ImagePath = subCatDetail.ImagePath;
_this99._commonService.SetWebTitle(_this99.translate.currentLang == 'hi' ? _this99.pageTitle.NameHindi : _this99.pageTitle.NameEnglish);
}
}, function (error) {
console.error(error);
});
} //#region
}, {
key: "posterListData",
value: function posterListData() {
var _this100 = this;
this.posterModel = undefined;
this.posterIndexModel.OrderBy = "AchievementDate";
this.posterIndexModel.OrderByAsc = 0;
this.posterIndexModel.AdvanceSearchModel = {
DepartmentCode: this.departmentCode,
CategoryCode: this.catCode || 0,
SubCategoryCode: this.subCatCode || 0
}; // this.posterIndexModel.AdvanceSearchModel = {
// DepartmentCode: (this.catCode == Number(AchievementCategoryEnum.VideoCode) || this.catCode == AchievementCategoryEnum.PostersCode
// || this.catCode == Number(AchievementCategoryEnum.AdvertisementCode)) ? 0 : this._commonService.GetWebDistDeptCode(),
// CategoryCode: this.catCode || 0,
// SubCategoryCode: this.subCatCode || 0
// }
this.achievementAwardService.GetPostersListData(this.posterIndexModel).subscribe(function (response) {
if (response.IsSuccess) {
_this100.posterModel = response.Data.Data;
if (!_this100.posterIndexModel.IsPostBack) {
_this100.posterTotalRecords = response.Data.TotalRecords;
}
_this100.posterUpdatePageConfig();
} else {
_this100.posterModel = [];
}
}, function (error) {
_this100.posterModel = [];
});
}
}, {
key: "posterGetNextPageRecord",
value: function posterGetNextPageRecord(page) {
window.scroll(0, 0);
this.posterIndexModel.IsPostBack = true;
this.posterIndexModel.Page = page;
this.posterListData();
}
}, {
key: "posterChangePageSize",
value: function posterChangePageSize(value) {
window.scroll(0, 0);
this.posterIndexModel.IsPostBack = true;
this.posterIndexModel.PageSize = Number(value);
this.posterIndexModel.Page = 1;
this.posterListData();
}
}, {
key: "posterUpdatePageConfig",
value: function posterUpdatePageConfig() {
this.posterPagerConfig.itemsPerPage = this.posterIndexModel.PageSize;
this.posterPagerConfig.currentPage = this.posterIndexModel.Page;
this.posterPagerConfig.totalItems = this.posterTotalRecords;
} //#endregion
//#region
}, {
key: "videoListData",
value: function videoListData() {
var _this101 = this;
this.videoModel = undefined;
this.videoIndexModel.OrderBy = "AchievementDate";
this.videoIndexModel.OrderByAsc = 0;
this.videoIndexModel.AdvanceSearchModel = {
DepartmentCode: this.departmentCode,
CategoryCode: this.catCode || 0,
SubCategoryCode: this.subCatCode || 0
};
this.achievementAwardService.GetVideoListData(this.videoIndexModel).subscribe(function (response) {
if (response.IsSuccess) {
_this101.videoModel = response.Data.Data; // Precompute safeUrl for each video
_this101.videoModel.forEach(function (item) {
var url = item.YoutubeURL ? item.YoutubeURL : item.Url;
item.safeUrl = _this101.SafeUrl(url);
});
if (!_this101.videoIndexModel.IsPostBack) {
_this101.videoTotalRecords = response.Data.TotalRecords;
}
_this101.videoUpdatePageConfig();
} else {
_this101.videoModel = [];
}
}, function (error) {
_this101.videoModel = [];
});
}
}, {
key: "videoGetNextPageRecord",
value: function videoGetNextPageRecord(page) {
window.scroll(0, 0);
this.videoIndexModel.IsPostBack = true;
this.videoIndexModel.Page = page;
this.videoListData();
}
}, {
key: "videoChangePageSize",
value: function videoChangePageSize(value) {
window.scroll(0, 0);
this.videoIndexModel.IsPostBack = true;
this.videoIndexModel.PageSize = Number(value);
this.videoIndexModel.Page = 1;
this.videoListData();
}
}, {
key: "videoUpdatePageConfig",
value: function videoUpdatePageConfig() {
this.videoPagerConfig.itemsPerPage = this.videoIndexModel.PageSize;
this.videoPagerConfig.currentPage = this.videoIndexModel.Page;
this.videoPagerConfig.totalItems = this.videoTotalRecords;
} //#endregion
//#region
}, {
key: "audioListData",
value: function audioListData() {
var _this102 = this;
this.audioModel = undefined;
this.audioIndexModel.OrderBy = "Priority";
this.audioIndexModel.OrderByAsc = 1;
this.audioIndexModel.AdvanceSearchModel = {
DepartmentCode: this.departmentCode,
CategoryCode: this.catCode || 0,
SubCategoryCode: this.subCatCode || 0
};
this.achievementAwardService.GetAudioListData(this.audioIndexModel).subscribe(function (response) {
if (response.IsSuccess) {
_this102.audioModel = response.Data.Data;
if (!_this102.audioIndexModel.IsPostBack) {
_this102.audioTotalRecords = response.Data.TotalRecords;
}
_this102.audioUpdatePageConfig();
} else {
_this102.audioModel = [];
}
}, function (error) {
_this102.audioModel = [];
});
}
}, {
key: "audioGetNextPageRecord",
value: function audioGetNextPageRecord(page) {
window.scroll(0, 0);
this.audioIndexModel.IsPostBack = true;
this.audioIndexModel.Page = page;
this.audioListData();
}
}, {
key: "audioChangePageSize",
value: function audioChangePageSize(value) {
window.scroll(0, 0);
this.audioIndexModel.IsPostBack = true;
this.audioIndexModel.PageSize = Number(value);
this.audioIndexModel.Page = 1;
this.audioListData();
}
}, {
key: "audioUpdatePageConfig",
value: function audioUpdatePageConfig() {
this.audioPagerConfig.itemsPerPage = this.audioIndexModel.PageSize;
this.audioPagerConfig.currentPage = this.audioIndexModel.Page;
this.audioPagerConfig.totalItems = this.audioTotalRecords;
} //#endregion
//#region
}, {
key: "advertisementListData",
value: function advertisementListData() {
var _this103 = this;
this.advertisementModel = undefined;
this.advertisementIndexModel.OrderBy = "AchievementDate";
this.advertisementIndexModel.OrderByAsc = 0;
this.advertisementIndexModel.AdvanceSearchModel = {
DepartmentCode: this.departmentCode,
CategoryCode: this.catCode || 0,
SubCategoryCode: this.subCatCode || 0
};
this.achievementAwardService.GetAdvertisementListData(this.advertisementIndexModel).subscribe(function (response) {
if (response.IsSuccess) {
_this103.advertisementModel = response.Data.Data;
if (!_this103.advertisementIndexModel.IsPostBack) {
_this103.advertisementTotalRecords = response.Data.TotalRecords;
}
_this103.advertisementUpdatePageConfig();
} else {
_this103.advertisementModel = [];
}
}, function (error) {
_this103.advertisementModel = [];
});
}
}, {
key: "advertisementGetNextPageRecord",
value: function advertisementGetNextPageRecord(page) {
window.scroll(0, 0);
this.advertisementIndexModel.IsPostBack = true;
this.advertisementIndexModel.Page = page;
this.advertisementListData();
}
}, {
key: "advertisementChangePageSize",
value: function advertisementChangePageSize(value) {
window.scroll(0, 0);
this.advertisementIndexModel.IsPostBack = true;
this.advertisementIndexModel.PageSize = Number(value);
this.advertisementIndexModel.Page = 1;
this.advertisementListData();
}
}, {
key: "advertisementUpdatePageConfig",
value: function advertisementUpdatePageConfig() {
this.advertisementPagerConfig.itemsPerPage = this.advertisementIndexModel.PageSize;
this.advertisementPagerConfig.currentPage = this.advertisementIndexModel.Page;
this.advertisementPagerConfig.totalItems = this.advertisementTotalRecords;
} //#endregion
//#region
}, {
key: "getAttachmentsData",
value: function getAttachmentsData() {
var _this104 = this;
this.attachmentModel = undefined;
this.attachmentIndexModel.OrderBy = "Priority";
this.attachmentIndexModel.OrderByAsc = 1;
this.attachmentIndexModel.AdvanceSearchModel = {
DepartmentCode: this.departmentCode,
CategoryCode: this.catCode || 0,
SubCategoryCode: this.subCatCode || 0
};
this.achievementAwardService.GetAdvertisementListData(this.attachmentIndexModel).subscribe(function (response) {
if (response.IsSuccess) {
_this104.attachmentModel = response.Data.Data;
if (!_this104.attachmentIndexModel.IsPostBack) {
_this104.attachmentTotalRecords = response.Data.TotalRecords;
}
_this104.attachmentUpdatePageConfig();
} else {
_this104.attachmentModel = [];
}
}, function (error) {
_this104.attachmentModel = [];
});
}
}, {
key: "attachmentGetNextPageRecord",
value: function attachmentGetNextPageRecord(page) {
window.scroll(0, 0);
this.attachmentIndexModel.IsPostBack = true;
this.attachmentIndexModel.Page = page;
this.getAttachmentsData();
}
}, {
key: "attachmentChangePageSize",
value: function attachmentChangePageSize(value) {
window.scroll(0, 0);
this.attachmentIndexModel.IsPostBack = true;
this.attachmentIndexModel.PageSize = Number(value);
this.attachmentIndexModel.Page = 1;
this.getAttachmentsData();
}
}, {
key: "attachmentUpdatePageConfig",
value: function attachmentUpdatePageConfig() {
this.attachmentPagerConfig.itemsPerPage = this.attachmentIndexModel.PageSize;
this.attachmentPagerConfig.currentPage = this.attachmentIndexModel.Page;
this.attachmentPagerConfig.totalItems = this.attachmentTotalRecords;
} //#endregion
//#region
}, {
key: "getDescriptionData",
value: function getDescriptionData() {
var _this105 = this;
this.descriptionModel = undefined;
this.descriptionIndexModel.OrderBy = "Priority";
this.descriptionIndexModel.OrderByAsc = 1;
this.descriptionIndexModel.AdvanceSearchModel = {
DepartmentCode: this.departmentCode,
CategoryCode: this.catCode || 0,
SubCategoryCode: this.subCatCode || 0
};
this.achievementAwardService.GetAdvertisementListData(this.descriptionIndexModel).subscribe(function (response) {
if (response.IsSuccess) {
_this105.descriptionModel = response.Data.Data;
if (!_this105.descriptionIndexModel.IsPostBack) {
_this105.descriptionTotalRecords = response.Data.TotalRecords;
}
_this105.descriptionUpdatePageConfig();
} else {
_this105.descriptionModel = [];
}
}, function (error) {
_this105.descriptionModel = [];
});
}
}, {
key: "descriptionGetNextPageRecord",
value: function descriptionGetNextPageRecord(page) {
window.scroll(0, 0);
this.descriptionIndexModel.IsPostBack = true;
this.descriptionIndexModel.Page = page;
this.getDescriptionData();
}
}, {
key: "descriptionChangePageSize",
value: function descriptionChangePageSize(value) {
window.scroll(0, 0);
this.descriptionIndexModel.IsPostBack = true;
this.descriptionIndexModel.PageSize = Number(value);
this.descriptionIndexModel.Page = 1;
this.getDescriptionData();
}
}, {
key: "descriptionUpdatePageConfig",
value: function descriptionUpdatePageConfig() {
this.descriptionPagerConfig.itemsPerPage = this.descriptionIndexModel.PageSize;
this.descriptionPagerConfig.currentPage = this.descriptionIndexModel.Page;
this.descriptionPagerConfig.totalItems = this.descriptionTotalRecords;
} //#endregion
}, {
key: "onMediaPlaying",
value: function onMediaPlaying(event, IsAudio) {
var _a, _b;
event.preventDefault();
if (this.currentPlayingVideo != undefined) {
(_a = this.currentPlayingVideo) === null || _a === void 0 ? void 0 : _a.pause(); // this.currentPlayingIframeVideo.src = this.currentPlayingIframeVideo.src;
}
if (this.currentPlayingAudio != undefined) {
(_b = this.currentPlayingAudio) === null || _b === void 0 ? void 0 : _b.pause();
}
if (IsAudio) {
this.currentPlayingAudio = event.target;
this.currentPlayingAudio.play();
} else {
this.currentPlayingVideo = event.target;
this.currentPlayingVideo.play();
}
}
}, {
key: "isExtenstionUrl",
value: function isExtenstionUrl(url) {
var regexp = new RegExp(/\.\w{3,4}($|\?)/i);
return regexp.test(url);
}
}, {
key: "SafeUrl",
value: function SafeUrl(url) {
if (url != undefined && url.length > 0) {
var regexp = new RegExp(/\/view(v|V?)/i);
if (!regexp.test(url)) {
url = url.replace(/\/watch\?(v|V\?)=/g, '/embed/');
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
} else {
url = url.replace(/\/view(v|V?)/i, '/preview');
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
}
} else {
return null;
}
}
}]);
}();
GalleryComponent.ɵfac = function GalleryComponent_Factory(t) {
return new (t || GalleryComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_achievement_award_service__WEBPACK_IMPORTED_MODULE_2__[
/* AchievementAwardService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_3__[
/* DptDistrictWebsiteService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__[
/* DomSanitizer */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* Router */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_app_component__WEBPACK_IMPORTED_MODULE_7__[
/* AppComponent */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__[
/* Title */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_achievement_award_service__WEBPACK_IMPORTED_MODULE_2__[
/* AchievementAwardService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_8__[
/* CommonService */
"a"]));
};
GalleryComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdefineComponent */
"Pb"]({
type: GalleryComponent,
selectors: [["app-gallery"]],
decls: 20,
vars: 12,
consts: [["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [4, "ngIf"], [1, "order_page"], [1, "gallery", "pt-5"], [1, "container-fluid"], [1, "row"], ["class", "col-lg-12 pb-4", 4, "ngIf"], ["class", "col-lg-12", 4, "ngIf"], ["class", "col-lg-12 p-0", 4, "ngIf"], [1, "col-lg-12", "pb-4"], [1, "title", "text-center"], [1, "img-fluid", "mr-10", 3, "src", "title", "alt", "error"], [3, "showImage", 4, "ngIf"], [1, "photo-gallery", "photo-gallery-new-design"], [1, "d-flex", "flex-row", "flex-wrap", "my-flex-container", "justify-content-center", "photos"], ["class", "photo-gallery-bx align-items-center d-flex justify-content-center", 4, "ngFor", "ngForOf"], [1, "text-center", "my-5"], ["class", "new-pagination-outer", 4, "ngIf"], [1, "photo-gallery-bx", "align-items-center", "d-flex", "justify-content-center"], [1, "img-loader", 3, "href", "title", "error"], [1, "img-fluid", "rounded", 3, "src", "title", "alt", "error"], ["style", "display: none;", 4, "ngIf"], [1, "home-gallery-items-caption"], [1, "soft-entry"], [2, "display", "none"], [4, "ngFor", "ngForOf"], [3, "href", "title"], [3, "src", "title", "alt", "error"], [1, "new-pagination-outer"], ["name", "example_length", "aria-controls", "example", "class", "form-control-sm top-0", "style", "width:70px;", 3, "change", 4, "ngIf"], ["id", "poster-paging", "autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], ["name", "example_length", "aria-controls", "example", 1, "form-control-sm", "top-0", 2, "width", "70px", 3, "change"], [3, "value"], ["selected", "", "value", "15"], ["value", "30"], ["value", "60"], ["value", "120"], [3, "showImage"], [1, "col-lg-12"], ["class", "col-sm-6 col-md-6 col-lg-6 col-xl-4 item mb-3 ", 3, "title", 4, "ngIf"], [1, "col-sm-6", "col-md-6", "col-lg-6", "col-xl-4", "item", "mb-3", 3, "title"], [1, "audio-card", "video-card-new", "text-center"], [1, "embed-responsive", "embed-responsive-21by9"], [4, "ngIf", "ngIfElse"], ["iframVideo", ""], ["templateTwo", ""], ["target", "_blank", 3, "href"], ["width", "100%", "height", "100%", "controls", "", "preload", "metadata", "data-setup", "{ \"aspectRatio\":\"100%:100%\", \"playbackRates\": [1, 1.5, 2] }", 1, "embed-responsive-item", 3, "id", "poster", "playing"], [3, "src", "type"], ["width", "100%", "height", "100%", "frameborder", "0", "allow", "accelerometer; autoplay; gyroscope; picture-in-picture", "allowfullscreen", "", 1, "embed-responsive-item", 3, "src", "onclick"], [1, "av-caption", 3, "title"], ["name", "example_length", "aria-controls", "example", 1, "form-control-sm", 2, "width", "70px", 3, "change"], ["id", "video-paging", "autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], ["class", "col-sm-6 col-md-6 col-lg-4 col-xl-3 item mb-4", 3, "title", 4, "ngIf"], [1, "col-sm-6", "col-md-6", "col-lg-4", "col-xl-3", "item", "mb-4", 3, "title"], [1, "audio-card", "text-center"], ["src", "assets/images/high-volume.png", 1, "img-fluid", 3, "title", "alt"], ["preload", "none", "controls", "", 1, "w-100", 3, "playing"], [3, "src"], ["id", "audio-paging", "autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], ["data-lightbox", "photos", 3, "href", "title", "error"], ["id", "advertisement-paging", "autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], ["target", "_blank", 1, "img-loader", 3, "href", "title"], ["id", "attachment-paging", "autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], [1, "col-lg-12", "p-0"], [1, "container"], ["class", "row mt-4", 3, "id", 4, "ngFor", "ngForOf"], ["href", "javascript:void(0);", 1, "btn", "btn-round", "btn-theme", "btn-yellow", "mb-3", 3, "click"], [1, "row", "mt-4", 3, "id"], [1, "card-d-1"], [1, "d-md-flex", "align-items-center", "justify-content-between", "mb-2"], [1, "text-color-theme-blue", "font-size-3x"], [1, "d-flex", "align-items-center"], [3, "innerHTML"], [1, "card-d-1-gallery-img"], [1, "card-d-1-gallery-pdf"], [1, "fas", "fa-file-pdf"], ["id", "description-paging", "autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"]],
template: function GalleryComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-loader");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "nav", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "ol", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](4, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](8, GalleryComponent_span_8_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](9, GalleryComponent_span_9_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](10, "section", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "section", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](14, GalleryComponent_div_14_Template, 8, 8, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](15, GalleryComponent_div_15_Template, 8, 8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](16, GalleryComponent_div_16_Template, 8, 8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](17, GalleryComponent_div_17_Template, 8, 8, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](18, GalleryComponent_div_18_Template, 8, 8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](19, GalleryComponent_div_19_Template, 8, 8, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx._commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](6, 10, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isShowPoster);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isShowVideo);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isShowAudio);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isShowAdvertisment);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isShowAttachment);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isShowDescription);
}
},
directives: [_loader_loader_component__WEBPACK_IMPORTED_MODULE_9__[
/* LoaderComponent */
"a"], _angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_10__[
/* NgIf */
"n"], _angular_common__WEBPACK_IMPORTED_MODULE_10__[
/* NgForOf */
"m"], ngx_pagination__WEBPACK_IMPORTED_MODULE_11__[
/* PaginationControlsComponent */
"c"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__[
/* NgSelectOption */
"q"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__[
/* ɵangular_packages_forms_forms_x */
"w"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_13__[
/* MiniLoaderComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_14__[
/* NoRecordsComponent */
"a"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__[
/* TranslatePipe */
"c"], ngx_pagination__WEBPACK_IMPORTED_MODULE_11__[
/* PaginatePipe */
"b"], _angular_common__WEBPACK_IMPORTED_MODULE_10__[
/* SlicePipe */
"u"]],
styles: [""]
});
return GalleryComponent;
}();
/***/
},
/***/
"PaCI":
/***/
function PaCI(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return CMISModuleService;
});
/* harmony import */
var _Model_app_setting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GAWG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("MLVi");
var CMISModuleService =
/*@__PURE__*/
function () {
var CMISModuleService =
/*#__PURE__*/
function () {
function CMISModuleService(_baseService) {
_classCallCheck(this, CMISModuleService);
this._baseService = _baseService;
}
return _createClass2(CMISModuleService, [{
key: "GetModuleListData",
value: function GetModuleListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAllCMISModuleDataListurl, model);
}
}, {
key: "GetModuleMasterListData",
value: function GetModuleMasterListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAllCMISModuleMasterListurl, model);
}
}, {
key: "GetModuleListDataBySearch",
value: function GetModuleListDataBySearch(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAllCMISModuleSearchDataListurl, model);
}
}, {
key: "GetAllCMISModuleDataGroupByDepartment",
value: function GetAllCMISModuleDataGroupByDepartment(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAllCMISModuleDataGroupByDepartmenturl, model);
}
}, {
key: "GetAllCMISAchievementData",
value: function GetAllCMISAchievementData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAllCMISAchievementDataListurl, model);
}
}, {
key: "GetAllCMISAchievementGroupByDepartment",
value: function GetAllCMISAchievementGroupByDepartment(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAllCMISAchievementGroupByDepartmenturl, model);
}
}]);
}();
CMISModuleService.ɵfac = function CMISModuleService_Factory(t) {
return new (t || CMISModuleService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵinject */
"ec"](_base_service__WEBPACK_IMPORTED_MODULE_2__[
/* BaseService */
"a"]));
};
CMISModuleService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdefineInjectable */
"Rb"]({
token: CMISModuleService,
factory: CMISModuleService.ɵfac,
providedIn: 'root'
});
return CMISModuleService;
}();
/***/
},
/***/
"Q1FS":
/***/
function Q1FS(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var canReportError_1 =
/*@__PURE__*/
__webpack_require__("yx2s");
var toSubscriber_1 =
/*@__PURE__*/
__webpack_require__("Xwq/");
var observable_1 =
/*@__PURE__*/
__webpack_require__("zfKp");
var pipe_1 =
/*@__PURE__*/
__webpack_require__("9AGB");
var config_1 =
/*@__PURE__*/
__webpack_require__("n3uD");
var Observable =
/*@__PURE__*/
function () {
function Observable(subscribe) {
this._isScalar = false;
if (subscribe) {
this._subscribe = subscribe;
}
}
Observable.prototype.lift = function (operator) {
var observable = new Observable();
observable.source = this;
observable.operator = operator;
return observable;
};
Observable.prototype.subscribe = function (observerOrNext, error, complete) {
var operator = this.operator;
var sink = toSubscriber_1.toSubscriber(observerOrNext, error, complete);
if (operator) {
sink.add(operator.call(sink, this.source));
} else {
sink.add(this.source || config_1.config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable ? this._subscribe(sink) : this._trySubscribe(sink));
}
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
if (sink.syncErrorThrowable) {
sink.syncErrorThrowable = false;
if (sink.syncErrorThrown) {
throw sink.syncErrorValue;
}
}
}
return sink;
};
Observable.prototype._trySubscribe = function (sink) {
try {
return this._subscribe(sink);
} catch (err) {
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
sink.syncErrorThrown = true;
sink.syncErrorValue = err;
}
if (canReportError_1.canReportError(sink)) {
sink.error(err);
} else {
console.warn(err);
}
}
};
Observable.prototype.forEach = function (next, promiseCtor) {
var _this = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var subscription;
subscription = _this.subscribe(function (value) {
try {
next(value);
} catch (err) {
reject(err);
if (subscription) {
subscription.unsubscribe();
}
}
}, reject, resolve);
});
};
Observable.prototype._subscribe = function (subscriber) {
var source = this.source;
return source && source.subscribe(subscriber);
};
Observable.prototype[observable_1.observable] = function () {
return this;
};
Observable.prototype.pipe = function () {
var operations = [];
for (var _i = 0; _i < arguments.length; _i++) {
operations[_i] = arguments[_i];
}
if (operations.length === 0) {
return this;
}
return pipe_1.pipeFromArray(operations)(this);
};
Observable.prototype.toPromise = function (promiseCtor) {
var _this = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var value;
_this.subscribe(function (x) {
return value = x;
}, function (err) {
return reject(err);
}, function () {
return resolve(value);
});
});
};
Observable.create = function (subscribe) {
return new Observable(subscribe);
};
return Observable;
}();
exports.Observable = Observable;
function getPromiseCtor(promiseCtor) {
if (!promiseCtor) {
promiseCtor = config_1.config.Promise || Promise;
}
if (!promiseCtor) {
throw new Error('no Promise impl found');
}
return promiseCtor;
}
/***/
},
/***/
"R0Ic":
/***/
function R0Ic(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AUTO_STYLE;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return AnimationBuilder;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return AnimationFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return NoopAnimationPlayer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return animate;
});
/* unused harmony export animateChild */
/* unused harmony export animation */
/* unused harmony export group */
/* unused harmony export keyframes */
/* unused harmony export query */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "f", function () {
return sequence;
});
/* unused harmony export stagger */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "g", function () {
return state;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "h", function () {
return style;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "i", function () {
return transition;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "j", function () {
return trigger;
});
/* unused harmony export useAnimation */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "k", function () {
return AnimationGroupPlayer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "l", function () {
return ɵPRE_STYLE;
});
/**
* @license Angular v9.0.7
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/src/animation_builder.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* An injectable service that produces an animation sequence programmatically within an
* Angular component or directive.
* Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.
*
* \@usageNotes
*
* To use this service, add it to your component or directive as a dependency.
* The service is instantiated along with your component.
*
* Apps do not typically need to create their own animation players, but if you
* do need to, follow these steps:
*
* 1. Use the `build()` method to create a programmatic animation using the
* `animate()` function. The method returns an `AnimationFactory` instance.
*
* 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.
*
* 3. Use the player object to control the animation programmatically.
*
* For example:
*
* ```ts
* // import the service from BrowserAnimationsModule
* import {AnimationBuilder} from '\@angular/animations';
* // require the service as a dependency
* class MyCmp {
* constructor(private _builder: AnimationBuilder) {}
*
* makeAnimation(element: any) {
* // first define a reusable animation
* const myAnimation = this._builder.build([
* style({ width: 0 }),
* animate(1000, style({ width: '100px' }))
* ]);
*
* // use the returned factory object to create a player
* const player = myAnimation.create(element);
*
* player.play();
* }
* }
* ```
*
* \@publicApi
* @abstract
*/
var AnimationBuilder =
/*#__PURE__*/
_createClass2(function AnimationBuilder() {
_classCallCheck(this, AnimationBuilder);
});
if (false) {}
/**
* A factory object returned from the `AnimationBuilder`.`build()` method.
*
* \@publicApi
* @abstract
*/
var AnimationFactory =
/*#__PURE__*/
_createClass2(function AnimationFactory() {
_classCallCheck(this, AnimationFactory);
});
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/src/animation_metadata.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Represents a set of CSS styles for use in an animation style.
* @record
*/
function ɵStyleData() {}
/** @enum {number} */
var AnimationMetadataType = {
/**
* Associates a named animation state with a set of CSS styles.
* See `state()`
*/
State: 0,
/**
* Data for a transition from one animation state to another.
* See `transition()`
*/
Transition: 1,
/**
* Contains a set of animation steps.
* See `sequence()`
*/
Sequence: 2,
/**
* Contains a set of animation steps.
* See `{@link animations/group group()}`
*/
Group: 3,
/**
* Contains an animation step.
* See `animate()`
*/
Animate: 4,
/**
* Contains a set of animation steps.
* See `keyframes()`
*/
Keyframes: 5,
/**
* Contains a set of CSS property-value pairs into a named style.
* See `style()`
*/
Style: 6,
/**
* Associates an animation with an entry trigger that can be attached to an element.
* See `trigger()`
*/
Trigger: 7,
/**
* Contains a re-usable animation.
* See `animation()`
*/
Reference: 8,
/**
* Contains data to use in executing child animations returned by a query.
* See `animateChild()`
*/
AnimateChild: 9,
/**
* Contains animation parameters for a re-usable animation.
* See `useAnimation()`
*/
AnimateRef: 10,
/**
* Contains child-animation query data.
* See `query()`
*/
Query: 11,
/**
* Contains data for staggering an animation sequence.
* See `stagger()`
*/
Stagger: 12
};
/**
* Specifies automatic styling.
*
* \@publicApi
* @type {?}
*/
var AUTO_STYLE = '*';
/**
* Base for animation data structures.
*
* \@publicApi
* @record
*/
function AnimationMetadata() {}
if (false) {}
/**
* Contains an animation trigger. Instantiated and returned by the
* `trigger()` function.
*
* \@publicApi
* @record
*/
function AnimationTriggerMetadata() {}
if (false) {}
/**
* Encapsulates an animation state by associating a state name with a set of CSS styles.
* Instantiated and returned by the `state()` function.
*
* \@publicApi
* @record
*/
function AnimationStateMetadata() {}
if (false) {}
/**
* Encapsulates an animation transition. Instantiated and returned by the
* `transition()` function.
*
* \@publicApi
* @record
*/
function AnimationTransitionMetadata() {}
if (false) {}
/**
* Encapsulates a reusable animation, which is a collection of individual animation steps.
* Instantiated and returned by the `animation()` function, and
* passed to the `useAnimation()` function.
*
* \@publicApi
* @record
*/
function AnimationReferenceMetadata() {}
if (false) {}
/**
* Encapsulates an animation query. Instantiated and returned by
* the `query()` function.
*
* \@publicApi
* @record
*/
function AnimationQueryMetadata() {}
if (false) {}
/**
* Encapsulates a keyframes sequence. Instantiated and returned by
* the `keyframes()` function.
*
* \@publicApi
* @record
*/
function AnimationKeyframesSequenceMetadata() {}
if (false) {}
/**
* Encapsulates an animation style. Instantiated and returned by
* the `style()` function.
*
* \@publicApi
* @record
*/
function AnimationStyleMetadata() {}
if (false) {}
/**
* Encapsulates an animation step. Instantiated and returned by
* the `animate()` function.
*
* \@publicApi
* @record
*/
function AnimationAnimateMetadata() {}
if (false) {}
/**
* Encapsulates a child animation, that can be run explicitly when the parent is run.
* Instantiated and returned by the `animateChild` function.
*
* \@publicApi
* @record
*/
function AnimationAnimateChildMetadata() {}
if (false) {}
/**
* Encapsulates a reusable animation.
* Instantiated and returned by the `useAnimation()` function.
*
* \@publicApi
* @record
*/
function AnimationAnimateRefMetadata() {}
if (false) {}
/**
* Encapsulates an animation sequence.
* Instantiated and returned by the `sequence()` function.
*
* \@publicApi
* @record
*/
function AnimationSequenceMetadata() {}
if (false) {}
/**
* Encapsulates an animation group.
* Instantiated and returned by the `{\@link animations/group group()}` function.
*
* \@publicApi
* @record
*/
function AnimationGroupMetadata() {}
if (false) {}
/**
* Encapsulates parameters for staggering the start times of a set of animation steps.
* Instantiated and returned by the `stagger()` function.
*
* \@publicApi
*
* @record
*/
function AnimationStaggerMetadata() {}
if (false) {}
/**
* Creates a named animation trigger, containing a list of `state()`
* and `transition()` entries to be evaluated when the expression
* bound to the trigger changes.
*
* \@usageNotes
* Define an animation trigger in the `animations` section of `\@Component` metadata.
* In the template, reference the trigger by name and bind it to a trigger expression that
* evaluates to a defined animation state, using the following format:
*
* `[\@triggerName]="expression"`
*
* Animation trigger bindings convert all values to strings, and then match the
* previous and current values against any linked transitions.
* Booleans can be specified as `1` or `true` and `0` or `false`.
*
* ### Usage Example
*
* The following example creates an animation trigger reference based on the provided
* name value.
* The provided animation value is expected to be an array consisting of state and
* transition declarations.
*
* ```typescript
* \@Component({
* selector: "my-component",
* templateUrl: "my-component-tpl.html",
* animations: [
* trigger("myAnimationTrigger", [
* state(...),
* state(...),
* transition(...),
* transition(...)
* ])
* ]
* })
* class MyComponent {
* myStatusExp = "something";
* }
* ```
*
* The template associated with this component makes use of the defined trigger
* by binding to an element within its template code.
*
* ```html
*
* ...
* ```
*
* ### Using an inline function
* The `transition` animation method also supports reading an inline function which can decide
* if its associated animation should be run.
*
* ```typescript
* // this method is run each time the `myAnimationTrigger` trigger value changes.
* function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
* string]: any}): boolean {
* // notice that `element` and `params` are also available here
* return toState == 'yes-please-animate';
* }
* /
* selector: 'my-component',
* templateUrl: 'my-component-tpl.html',
* animations: [
* trigger('myAnimationTrigger', [
* transition(myInlineMatcherFn, [
* // the animation sequence code
* ]),
* ])
* ]
* })
* class MyComponent {
* myStatusExp = "yes-please-animate";
* }
* ```
*
* ### Disabling Animations
* When true, the special animation control binding `\@.disabled` binding prevents
* all animations from rendering.
* Place the `\@.disabled` binding on an element to disable
* animations on the element itself, as well as any inner animation triggers
* within the element.
*
* The following example shows how to use this feature:
*
* ```typescript /
* selector: 'my-component',
* template: `
*
* `,
* animations: [
* trigger("childAnimation", [
* // ...
* ])
* ]
* })
* class MyComponent {
* isDisabled = true;
* exp = '...';
* }
* ```
*
* When `\@.disabled` is true, it prevents the `\@childAnimation` trigger from animating,
* along with any inner animations.
*
* ### Disable animations application-wide
* When an area of the template is set to have animations disabled,
* **all** inner components have their animations disabled as well.
* This means that you can disable all animations for an app
* by placing a host binding set on `\@.disabled` on the topmost Angular component.
*
* ```typescript
* import {Component, HostBinding} from '\@angular/core';
* /
* selector: 'app-component',
* templateUrl: 'app.component.html',
* })
* class AppComponent {
* \@HostBinding('@.disabled')
* public animationsDisabled = true;
* }
* ```
*
* ### Overriding disablement of inner animations
* Despite inner animations being disabled, a parent animation can `query()`
* for inner elements located in disabled areas of the template and still animate
* them if needed. This is also the case for when a sub animation is
* queried by a parent and then later animated using `animateChild()`.
*
* ### Detecting when an animation is disabled
* If a region of the DOM (or the entire application) has its animations disabled, the animation
* trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
* an instance of an `AnimationEvent`. If animations are disabled,
* the `.disabled` flag on the event is true.
*
* \@publicApi
* @param {?} name An identifying string.
* @param {?} definitions An animation definition object, containing an array of `state()`
* and `transition()` declarations.
*
* @return {?} An object that encapsulates the trigger data.
*
*/
function trigger(name, definitions) {
return {
type: 7
/* Trigger */
,
name: name,
definitions: definitions,
options: {}
};
}
/**
* Defines an animation step that combines styling information with timing information.
*
* \@usageNotes
* Call within an animation `sequence()`, `{\@link animations/group group()}`, or
* `transition()` call to specify an animation step
* that applies given style data to the parent animation for a given amount of time.
*
* ### Syntax Examples
* **Timing examples**
*
* The following examples show various `timings` specifications.
* - `animate(500)` : Duration is 500 milliseconds.
* - `animate("1s")` : Duration is 1000 milliseconds.
* - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds.
* - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in.
* - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10
* milliseconds, easing according to a bezier curve.
*
* **Style examples**
*
* The following example calls `style()` to set a single CSS style.
* ```typescript
* animate(500, style({ background: "red" }))
* ```
* The following example calls `keyframes()` to set a CSS style
* to different values for successive keyframes.
* ```typescript
* animate(500, keyframes(
* [
* style({ background: "blue" })),
* style({ background: "red" }))
* ])
* ```
*
* \@publicApi
* @param {?} timings Sets `AnimateTimings` for the parent animation.
* A string in the format "duration [delay] [easing]".
* - Duration and delay are expressed as a number and optional time unit,
* such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
* The default unit is milliseconds.
* - The easing value controls how the animation accelerates and decelerates
* during its runtime. Value is one of `ease`, `ease-in`, `ease-out`,
* `ease-in-out`, or a `cubic-bezier()` function call.
* If not supplied, no easing is applied.
*
* For example, the string "1s 100ms ease-out" specifies a duration of
* 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style,
* which decelerates near the end of the duration.
* @param {?=} styles Sets AnimationStyles for the parent animation.
* A function call to either `style()` or `keyframes()`
* that returns a collection of CSS style entries to be applied to the parent animation.
* When null, uses the styles from the destination state.
* This is useful when describing an animation step that will complete an animation;
* see "Animating to the final state" in `transitions()`.
* @return {?} An object that encapsulates the animation step.
*
*/
function animate(timings) {
var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return {
type: 4
/* Animate */
,
styles: styles,
timings: timings
};
}
/**
* \@description Defines a list of animation steps to be run in parallel.
*
* \@usageNotes
* Grouped animations are useful when a series of styles must be
* animated at different starting times and closed off at different ending times.
*
* When called within a `sequence()` or a
* `transition()` call, does not continue to the next
* instruction until all of the inner animation steps have completed.
*
* \@publicApi
* @param {?} steps An array of animation step objects.
* - When steps are defined by `style()` or `animate()`
* function calls, each call within the group is executed instantly.
* - To specify offset styles to be applied at a later time, define steps with
* `keyframes()`, or use `animate()` calls with a delay value.
* For example:
*
* ```typescript
* group([
* animate("1s", style({ background: "black" })),
* animate("2s", style({ color: "white" }))
* ])
* ```
*
* @param {?=} options An options object containing a delay and
* developer-defined parameters that provide styling defaults and
* can be overridden on invocation.
*
* @return {?} An object that encapsulates the group data.
*
*/
function group(steps) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return {
type: 3
/* Group */
,
steps: steps,
options: options
};
}
/**
* Defines a list of animation steps to be run sequentially, one by one.
*
* \@usageNotes
* When you pass an array of steps to a
* `transition()` call, the steps run sequentially by default.
* Compare this to the `{\@link animations/group group()}` call, which runs animation steps in parallel.
*
* When a sequence is used within a `{\@link animations/group group()}` or a `transition()` call,
* execution continues to the next instruction only after each of the inner animation
* steps have completed.
*
* \@publicApi
*
* @param {?} steps An array of animation step objects.
* - Steps defined by `style()` calls apply the styling data immediately.
* - Steps defined by `animate()` calls apply the styling data over time
* as specified by the timing data.
*
* ```typescript
* sequence([
* style({ opacity: 0 }),
* animate("1s", style({ opacity: 1 }))
* ])
* ```
*
* @param {?=} options An options object containing a delay and
* developer-defined parameters that provide styling defaults and
* can be overridden on invocation.
*
* @return {?} An object that encapsulates the sequence data.
*
*/
function sequence(steps) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return {
type: 2
/* Sequence */
,
steps: steps,
options: options
};
}
/**
* Declares a key/value object containing CSS properties/styles that
* can then be used for an animation `state`, within an animation `sequence`,
* or as styling data for calls to `animate()` and `keyframes()`.
*
* \@usageNotes
* The following examples create animation styles that collect a set of
* CSS property values:
*
* ```typescript
* // string values for CSS properties
* style({ background: "red", color: "blue" })
*
* // numerical pixel values
* style({ width: 100, height: 0 })
* ```
*
* The following example uses auto-styling to allow a component to animate from
* a height of 0 up to the height of the parent element:
*
* ```
* style({ height: 0 }),
* animate("1s", style({ height: "*" }))
* ```
*
* \@publicApi
*
* @param {?} tokens A set of CSS styles or HTML styles associated with an animation state.
* The value can be any of the following:
* - A key-value style pair associating a CSS property with a value.
* - An array of key-value style pairs.
* - An asterisk (*), to use auto-styling, where styles are derived from the element
* being animated and applied to the animation when it starts.
*
* Auto-styling can be used to define a state that depends on layout or other
* environmental factors.
*
* @return {?} An object that encapsulates the style data.
*
*/
function style(tokens) {
return {
type: 6
/* Style */
,
styles: tokens,
offset: null
};
}
/**
* Declares an animation state within a trigger attached to an element.
*
* \@usageNotes
* Use the `trigger()` function to register states to an animation trigger.
* Use the `transition()` function to animate between states.
* When a state is active within a component, its associated styles persist on the element,
* even when the animation ends.
*
* \@publicApi
*
* @param {?} name One or more names for the defined state in a comma-separated string.
* The following reserved state names can be supplied to define a style for specific use
* cases:
*
* - `void` You can associate styles with this name to be used when
* the element is detached from the application. For example, when an `ngIf` evaluates
* to false, the state of the associated element is void.
* - `*` (asterisk) Indicates the default state. You can associate styles with this name
* to be used as the fallback when the state that is being animated is not declared
* within the trigger.
*
* @param {?} styles A set of CSS styles associated with this state, created using the
* `style()` function.
* This set of styles persists on the element once the state has been reached.
* @param {?=} options Parameters that can be passed to the state when it is invoked.
* 0 or more key-value pairs.
* @return {?} An object that encapsulates the new state data.
*
*/
function state(name, styles, options) {
return {
type: 0
/* State */
,
name: name,
styles: styles,
options: options
};
}
/**
* Defines a set of animation styles, associating each style with an optional `offset` value.
*
* \@usageNotes
* Use with the `animate()` call. Instead of applying animations
* from the current state
* to the destination state, keyframes describe how each style entry is applied and at what point
* within the animation arc.
* Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).
*
* ### Usage
*
* In the following example, the offset values describe
* when each `backgroundColor` value is applied. The color is red at the start, and changes to
* blue when 20% of the total time has elapsed.
*
* ```typescript
* // the provided offset values
* animate("5s", keyframes([
* style({ backgroundColor: "red", offset: 0 }),
* style({ backgroundColor: "blue", offset: 0.2 }),
* style({ backgroundColor: "orange", offset: 0.3 }),
* style({ backgroundColor: "black", offset: 1 })
* ]))
* ```
*
* If there are no `offset` values specified in the style entries, the offsets
* are calculated automatically.
*
* ```typescript
* animate("5s", keyframes([
* style({ backgroundColor: "red" }) // offset = 0
* style({ backgroundColor: "blue" }) // offset = 0.33
* style({ backgroundColor: "orange" }) // offset = 0.66
* style({ backgroundColor: "black" }) // offset = 1
* ]))
* ```
* \@publicApi
* @param {?} steps A set of animation styles with optional offset data.
* The optional `offset` value for a style specifies a percentage of the total animation
* time at which that style is applied.
* @return {?} An object that encapsulates the keyframes data.
*
*/
function keyframes(steps) {
return {
type: 5
/* Keyframes */
,
steps: steps
};
}
/**
* Declares an animation transition as a sequence of animation steps to run when a given
* condition is satisfied. The condition is a Boolean expression or function that compares
* the previous and current animation states, and returns true if this transition should occur.
* When the state criteria of a defined transition are met, the associated animation is
* triggered.
*
* \@usageNotes
* The template associated with a component binds an animation trigger to an element.
*
* ```HTML
*
* ...
* ```
*
* All transitions are defined within an animation trigger,
* along with named states that the transitions change to and from.
*
* ```typescript
* trigger("myAnimationTrigger", [
* // define states
* state("on", style({ background: "green" })),
* state("off", style({ background: "grey" })),
* ...]
* ```
*
* Note that when you call the `sequence()` function within a `{\@link animations/group group()}`
* or a `transition()` call, execution does not continue to the next instruction
* until each of the inner animation steps have completed.
*
* ### Syntax examples
*
* The following examples define transitions between the two defined states (and default states),
* using various options:
*
* ```typescript
* // Transition occurs when the state value
* // bound to "myAnimationTrigger" changes from "on" to "off"
* transition("on => off", animate(500))
* // Run the same animation for both directions
* transition("on <=> off", animate(500))
* // Define multiple state-change pairs separated by commas
* transition("on => off, off => void", animate(500))
* ```
*
* ### Special values for state-change expressions
*
* - Catch-all state change for when an element is inserted into the page and the
* destination state is unknown:
*
* ```typescript
* transition("void => *", [
* style({ opacity: 0 }),
* animate(500)
* ])
* ```
*
* - Capture a state change between any states:
*
* `transition("* => *", animate("1s 0s"))`
*
* - Entry and exit transitions:
*
* ```typescript
* transition(":enter", [
* style({ opacity: 0 }),
* animate(500, style({ opacity: 1 }))
* ]),
* transition(":leave", [
* animate(500, style({ opacity: 0 }))
* ])
* ```
*
* - Use `:increment` and `:decrement` to initiate transitions:
*
* ```typescript
* transition(":increment", group([
* query(':enter', [
* style({ left: '100%' }),
* animate('0.5s ease-out', style('*'))
* ]),
* query(':leave', [
* animate('0.5s ease-out', style({ left: '-100%' }))
* ])
* ]))
*
* transition(":decrement", group([
* query(':enter', [
* style({ left: '100%' }),
* animate('0.5s ease-out', style('*'))
* ]),
* query(':leave', [
* animate('0.5s ease-out', style({ left: '-100%' }))
* ])
* ]))
* ```
*
* ### State-change functions
*
* Here is an example of a `fromState` specified as a state-change function that invokes an
* animation when true:
*
* ```typescript
* transition((fromState, toState) =>
* {
* return fromState == "off" && toState == "on";
* },
* animate("1s 0s"))
* ```
*
* ### Animating to the final state
*
* If the final step in a transition is a call to `animate()` that uses a timing value
* with no style data, that step is automatically considered the final animation arc,
* for the element to reach the final state. Angular automatically adds or removes
* CSS styles to ensure that the element is in the correct final state.
*
* The following example defines a transition that starts by hiding the element,
* then makes sure that it animates properly to whatever state is currently active for trigger:
*
* ```typescript
* transition("void => *", [
* style({ opacity: 0 }),
* animate(500)
* ])
* ```
* ### Boolean value matching
* If a trigger binding value is a Boolean, it can be matched using a transition expression
* that compares true and false or 1 and 0. For example:
*
* ```
* // in the template
* ...
* // in the component metadata
* trigger('openClose', [
* state('true', style({ height: '*' })),
* state('false', style({ height: '0px' })),
* transition('false <=> true', animate(500))
* ])
* ```
*
* \@publicApi
*
* @param {?} stateChangeExpr A Boolean expression or function that compares the previous and current
* animation states, and returns true if this transition should occur. Note that "true" and "false"
* match 1 and 0, respectively. An expression is evaluated each time a state change occurs in the
* animation trigger element.
* The animation steps run when the expression evaluates to true.
*
* - A state-change string takes the form "state1 => state2", where each side is a defined animation
* state, or an asterix (*) to refer to a dynamic start or end state.
* - The expression string can contain multiple comma-separated statements;
* for example "state1 => state2, state3 => state4".
* - Special values `:enter` and `:leave` initiate a transition on the entry and exit states,
* equivalent to "void => *" and "* => void".
* - Special values `:increment` and `:decrement` initiate a transition when a numeric value has
* increased or decreased in value.
* - A function is executed each time a state change occurs in the animation trigger element.
* The animation steps run when the function returns true.
*
* @param {?} steps One or more animation objects, as returned by the `animate()` or
* `sequence()` function, that form a transformation from one state to another.
* A sequence is used by default when you pass an array.
* @param {?=} options An options object that can contain a delay value for the start of the animation,
* and additional developer-defined parameters. Provided values for additional parameters are used
* as defaults, and override values can be passed to the caller on invocation.
* @return {?} An object that encapsulates the transition data.
*
*/
function transition(stateChangeExpr, steps) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
return {
type: 1
/* Transition */
,
expr: stateChangeExpr,
animation: steps,
options: options
};
}
/**
* Produces a reusable animation that can be invoked in another animation or sequence,
* by calling the `useAnimation()` function.
*
* \@usageNotes
* The following example defines a reusable animation, providing some default parameter
* values.
*
* ```typescript
* var fadeAnimation = animation([
* style({ opacity: '{{ start }}' }),
* animate('{{ time }}',
* style({ opacity: '{{ end }}'}))
* ],
* { params: { time: '1000ms', start: 0, end: 1 }});
* ```
*
* The following invokes the defined animation with a call to `useAnimation()`,
* passing in override parameter values.
*
* ```js
* useAnimation(fadeAnimation, {
* params: {
* time: '2s',
* start: 1,
* end: 0
* }
* })
* ```
*
* If any of the passed-in parameter values are missing from this call,
* the default values are used. If one or more parameter values are missing before a step is
* animated, `useAnimation()` throws an error.
*
* \@publicApi
* @param {?} steps One or more animation objects, as returned by the `animate()`
* or `sequence()` function, that form a transformation from one state to another.
* A sequence is used by default when you pass an array.
* @param {?=} options An options object that can contain a delay value for the start of the
* animation, and additional developer-defined parameters.
* Provided values for additional parameters are used as defaults,
* and override values can be passed to the caller on invocation.
* @return {?} An object that encapsulates the animation data.
*
*/
function animation(steps) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return {
type: 8
/* Reference */
,
animation: steps,
options: options
};
}
/**
* Executes a queried inner animation element within an animation sequence.
*
* \@usageNotes
* Each time an animation is triggered in Angular, the parent animation
* has priority and any child animations are blocked. In order
* for a child animation to run, the parent animation must query each of the elements
* containing child animations, and run them using this function.
*
* Note that this feature is designed to be used with `query()` and it will only work
* with animations that are assigned using the Angular animation library. CSS keyframes
* and transitions are not handled by this API.
*
* \@publicApi
* @param {?=} options An options object that can contain a delay value for the start of the
* animation, and additional override values for developer-defined parameters.
* @return {?} An object that encapsulates the child animation data.
*
*/
function animateChild() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
return {
type: 9
/* AnimateChild */
,
options: options
};
}
/**
* Starts a reusable animation that is created using the `animation()` function.
*
* \@publicApi
* @param {?} animation The reusable animation to start.
* @param {?=} options An options object that can contain a delay value for the start of
* the animation, and additional override values for developer-defined parameters.
* @return {?} An object that contains the animation parameters.
*
*/
function useAnimation(animation) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return {
type: 10
/* AnimateRef */
,
animation: animation,
options: options
};
}
/**
* Finds one or more inner elements within the current element that is
* being animated within a sequence. Use with `animate()`.
*
* \@usageNotes
* Tokens can be merged into a combined query selector string. For example:
*
* ```typescript
* query(':self, .record:enter, .record:leave, \@subTrigger', [...])
* ```
*
* The `query()` function collects multiple elements and works internally by using
* `element.querySelectorAll`. Use the `limit` field of an options object to limit
* the total number of items to be collected. For example:
*
* ```js
* query('div', [
* animate(...),
* animate(...)
* ], { limit: 1 })
* ```
*
* By default, throws an error when zero items are found. Set the
* `optional` flag to ignore this error. For example:
*
* ```js
* query('.some-element-that-may-not-be-there', [
* animate(...),
* animate(...)
* ], { optional: true })
* ```
*
* ### Usage Example
*
* The following example queries for inner elements and animates them
* individually using `animate()`.
*
* ```typescript
* \@Component({
* selector: 'inner',
* template: `
*
*
Title
*
* Blah blah blah
*
*
* `,
* animations: [
* trigger('queryAnimation', [
* transition('* => goAnimate', [
* // hide the inner elements
* query('h1', style({ opacity: 0 })),
* query('.content', style({ opacity: 0 })),
*
* // animate the inner elements in, one by one
* query('h1', animate(1000, style({ opacity: 1 }))),
* query('.content', animate(1000, style({ opacity: 1 }))),
* ])
* ])
* ]
* })
* class Cmp {
* exp = '';
*
* goAnimate() {
* this.exp = 'goAnimate';
* }
* }
* ```
*
* \@publicApi
* @param {?} selector The element to query, or a set of elements that contain Angular-specific
* characteristics, specified with one or more of the following tokens.
* - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements.
* - `query(":animating")` : Query all currently animating elements.
* - `query("\@triggerName")` : Query elements that contain an animation trigger.
* - `query("\@*")` : Query all elements that contain an animation triggers.
* - `query(":self")` : Include the current element into the animation sequence.
*
* @param {?} animation One or more animation steps to apply to the queried element or elements.
* An array is treated as an animation sequence.
* @param {?=} options An options object. Use the 'limit' field to limit the total number of
* items to collect.
* @return {?} An object that encapsulates the query data.
*
*/
function query(selector, animation) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
return {
type: 11
/* Query */
,
selector: selector,
animation: animation,
options: options
};
}
/**
* Use within an animation `query()` call to issue a timing gap after
* each queried item is animated.
*
* \@usageNotes
* In the following example, a container element wraps a list of items stamped out
* by an `ngFor`. The container element contains an animation trigger that will later be set
* to query for each of the inner items.
*
* Each time items are added, the opacity fade-in animation runs,
* and each removed item is faded out.
* When either of these animations occur, the stagger effect is
* applied after each item's animation is started.
*
* ```html
*
* Show / Hide Items
*
*
* ```
*
* Here is the component code:
*
* ```typescript
* import {trigger, transition, style, animate, query, stagger} from '\@angular/animations';
* \@Component({
* templateUrl: 'list.component.html',
* animations: [
* trigger('listAnimation', [
* ...
* ])
* ]
* })
* class ListComponent {
* items = [];
*
* showItems() {
* this.items = [0,1,2,3,4];
* }
*
* hideItems() {
* this.items = [];
* }
*
* toggle() {
* this.items.length ? this.hideItems() : this.showItems();
* }
* }
* ```
*
* Here is the animation trigger code:
*
* ```typescript
* trigger('listAnimation', [
* transition('* => *', [ // each time the binding value changes
* query(':leave', [
* stagger(100, [
* animate('0.5s', style({ opacity: 0 }))
* ])
* ]),
* query(':enter', [
* style({ opacity: 0 }),
* stagger(100, [
* animate('0.5s', style({ opacity: 1 }))
* ])
* ])
* ])
* ])
* ```
*
* \@publicApi
* @param {?} timings A delay value.
* @param {?} animation One ore more animation steps.
* @return {?} An object that encapsulates the stagger data.
*
*/
function stagger(timings, animation) {
return {
type: 12
/* Stagger */
,
timings: timings,
animation: animation
};
}
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/src/util.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @param {?} cb
* @return {?}
*/
function scheduleMicroTask(cb) {
Promise.resolve(null).then(cb);
}
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/src/players/animation_player.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Provides programmatic control of a reusable animation sequence,
* built using the `build()` method of `AnimationBuilder`. The `build()` method
* returns a factory, whose `create()` method instantiates and initializes this interface.
*
* @see `AnimationBuilder`
* @see `AnimationFactory`
* @see `animate()`
*
* \@publicApi
* @record
*/
function AnimationPlayer() {}
if (false) {}
/**
* An empty programmatic controller for reusable animations.
* Used internally when animations are disabled, to avoid
* checking for the null case when an animation player is expected.
*
* @see `animate()`
* @see `AnimationPlayer`
* @see `GroupPlayer`
*
* \@publicApi
*/
var NoopAnimationPlayer =
/*#__PURE__*/
function () {
/**
* @param {?=} duration
* @param {?=} delay
*/
function NoopAnimationPlayer() {
var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
_classCallCheck(this, NoopAnimationPlayer);
this._onDoneFns = [];
this._onStartFns = [];
this._onDestroyFns = [];
this._started = false;
this._destroyed = false;
this._finished = false;
this.parentPlayer = null;
this.totalTime = duration + delay;
}
/**
* @private
* @return {?}
*/
return _createClass2(NoopAnimationPlayer, [{
key: "_onFinish",
value: function _onFinish() {
if (!this._finished) {
this._finished = true;
this._onDoneFns.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
this._onDoneFns = [];
}
}
/**
* @param {?} fn
* @return {?}
*/
}, {
key: "onStart",
value: function onStart(fn) {
this._onStartFns.push(fn);
}
/**
* @param {?} fn
* @return {?}
*/
}, {
key: "onDone",
value: function onDone(fn) {
this._onDoneFns.push(fn);
}
/**
* @param {?} fn
* @return {?}
*/
}, {
key: "onDestroy",
value: function onDestroy(fn) {
this._onDestroyFns.push(fn);
}
/**
* @return {?}
*/
}, {
key: "hasStarted",
value: function hasStarted() {
return this._started;
}
/**
* @return {?}
*/
}, {
key: "init",
value: function init() {}
/**
* @return {?}
*/
}, {
key: "play",
value: function play() {
if (!this.hasStarted()) {
this._onStart();
this.triggerMicrotask();
}
this._started = true;
}
/**
* \@internal
* @return {?}
*/
}, {
key: "triggerMicrotask",
value: function triggerMicrotask() {
var _this106 = this;
scheduleMicroTask(
/**
* @return {?}
*/
function () {
return _this106._onFinish();
});
}
/**
* @private
* @return {?}
*/
}, {
key: "_onStart",
value: function _onStart() {
this._onStartFns.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
this._onStartFns = [];
}
/**
* @return {?}
*/
}, {
key: "pause",
value: function pause() {}
/**
* @return {?}
*/
}, {
key: "restart",
value: function restart() {}
/**
* @return {?}
*/
}, {
key: "finish",
value: function finish() {
this._onFinish();
}
/**
* @return {?}
*/
}, {
key: "destroy",
value: function destroy() {
if (!this._destroyed) {
this._destroyed = true;
if (!this.hasStarted()) {
this._onStart();
}
this.finish();
this._onDestroyFns.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
this._onDestroyFns = [];
}
}
/**
* @return {?}
*/
}, {
key: "reset",
value: function reset() {}
/**
* @param {?} position
* @return {?}
*/
}, {
key: "setPosition",
value: function setPosition(position) {}
/**
* @return {?}
*/
}, {
key: "getPosition",
value: function getPosition() {
return 0;
}
/**
* \@internal
* @param {?} phaseName
* @return {?}
*/
}, {
key: "triggerCallback",
value: function triggerCallback(phaseName) {
/** @type {?} */
var methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
methods.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
methods.length = 0;
}
}]);
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/src/players/animation_group_player.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* A programmatic controller for a group of reusable animations.
* Used internally to control animations.
*
* @see `AnimationPlayer`
* @see `{\@link animations/group group()}`
*
*/
var AnimationGroupPlayer =
/*#__PURE__*/
function () {
/**
* @param {?} _players
*/
function AnimationGroupPlayer(_players) {
var _this107 = this;
_classCallCheck(this, AnimationGroupPlayer);
this._onDoneFns = [];
this._onStartFns = [];
this._finished = false;
this._started = false;
this._destroyed = false;
this._onDestroyFns = [];
this.parentPlayer = null;
this.totalTime = 0;
this.players = _players;
/** @type {?} */
var doneCount = 0;
/** @type {?} */
var destroyCount = 0;
/** @type {?} */
var startCount = 0;
/** @type {?} */
var total = this.players.length;
if (total == 0) {
scheduleMicroTask(
/**
* @return {?}
*/
function () {
return _this107._onFinish();
});
} else {
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
player.onDone(
/**
* @return {?}
*/
function () {
if (++doneCount == total) {
_this107._onFinish();
}
});
player.onDestroy(
/**
* @return {?}
*/
function () {
if (++destroyCount == total) {
_this107._onDestroy();
}
});
player.onStart(
/**
* @return {?}
*/
function () {
if (++startCount == total) {
_this107._onStart();
}
});
});
}
this.totalTime = this.players.reduce(
/**
* @param {?} time
* @param {?} player
* @return {?}
*/
function (time, player) {
return Math.max(time, player.totalTime);
}, 0);
}
/**
* @private
* @return {?}
*/
return _createClass2(AnimationGroupPlayer, [{
key: "_onFinish",
value: function _onFinish() {
if (!this._finished) {
this._finished = true;
this._onDoneFns.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
this._onDoneFns = [];
}
}
/**
* @return {?}
*/
}, {
key: "init",
value: function init() {
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
return player.init();
});
}
/**
* @param {?} fn
* @return {?}
*/
}, {
key: "onStart",
value: function onStart(fn) {
this._onStartFns.push(fn);
}
/**
* @private
* @return {?}
*/
}, {
key: "_onStart",
value: function _onStart() {
if (!this.hasStarted()) {
this._started = true;
this._onStartFns.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
this._onStartFns = [];
}
}
/**
* @param {?} fn
* @return {?}
*/
}, {
key: "onDone",
value: function onDone(fn) {
this._onDoneFns.push(fn);
}
/**
* @param {?} fn
* @return {?}
*/
}, {
key: "onDestroy",
value: function onDestroy(fn) {
this._onDestroyFns.push(fn);
}
/**
* @return {?}
*/
}, {
key: "hasStarted",
value: function hasStarted() {
return this._started;
}
/**
* @return {?}
*/
}, {
key: "play",
value: function play() {
if (!this.parentPlayer) {
this.init();
}
this._onStart();
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
return player.play();
});
}
/**
* @return {?}
*/
}, {
key: "pause",
value: function pause() {
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
return player.pause();
});
}
/**
* @return {?}
*/
}, {
key: "restart",
value: function restart() {
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
return player.restart();
});
}
/**
* @return {?}
*/
}, {
key: "finish",
value: function finish() {
this._onFinish();
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
return player.finish();
});
}
/**
* @return {?}
*/
}, {
key: "destroy",
value: function destroy() {
this._onDestroy();
}
/**
* @private
* @return {?}
*/
}, {
key: "_onDestroy",
value: function _onDestroy() {
if (!this._destroyed) {
this._destroyed = true;
this._onFinish();
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
return player.destroy();
});
this._onDestroyFns.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
this._onDestroyFns = [];
}
}
/**
* @return {?}
*/
}, {
key: "reset",
value: function reset() {
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
return player.reset();
});
this._destroyed = false;
this._finished = false;
this._started = false;
}
/**
* @param {?} p
* @return {?}
*/
}, {
key: "setPosition",
value: function setPosition(p) {
/** @type {?} */
var timeAtPosition = p * this.totalTime;
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
/** @type {?} */
var position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;
player.setPosition(position);
});
}
/**
* @return {?}
*/
}, {
key: "getPosition",
value: function getPosition() {
/** @type {?} */
var min = 0;
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
/** @type {?} */
var p = player.getPosition();
min = Math.min(p, min);
});
return min;
}
/**
* @return {?}
*/
}, {
key: "beforeDestroy",
value: function beforeDestroy() {
this.players.forEach(
/**
* @param {?} player
* @return {?}
*/
/**
* @param {?} player
* @return {?}
*/
function (player) {
if (player.beforeDestroy) {
player.beforeDestroy();
}
});
}
/**
* \@internal
* @param {?} phaseName
* @return {?}
*/
}, {
key: "triggerCallback",
value: function triggerCallback(phaseName) {
/** @type {?} */
var methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
methods.forEach(
/**
* @param {?} fn
* @return {?}
*/
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn();
});
methods.length = 0;
}
}]);
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/src/private_export.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var ɵPRE_STYLE = '!';
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/src/animations.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/public_api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: packages/animations/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
//# sourceMappingURL=animations.js.map
/***/
},
/***/
"RVz6":
/***/
function RVz6(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return LookupTypeEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return LookupEnum;
});
var LookupTypeEnum =
/*@__PURE__*/
function (LookupTypeEnum) {
LookupTypeEnum[LookupTypeEnum["District"] = 30147] = "District";
LookupTypeEnum[LookupTypeEnum["Department"] = 30146] = "Department";
LookupTypeEnum[LookupTypeEnum["Portal_Other"] = 31127] = "Portal_Other";
LookupTypeEnum[LookupTypeEnum["ProjectStatusCompleted"] = 20065] = "ProjectStatusCompleted";
LookupTypeEnum[LookupTypeEnum["ProjectStatusOnGoing"] = 20083] = "ProjectStatusOnGoing";
LookupTypeEnum[LookupTypeEnum["ProjectStatusShilanyas"] = 30093] = "ProjectStatusShilanyas";
LookupTypeEnum[LookupTypeEnum["ProjectStatusLokarpan"] = 30094] = "ProjectStatusLokarpan";
LookupTypeEnum[LookupTypeEnum["CommonCategoryLookupGeneral"] = 30209] = "CommonCategoryLookupGeneral";
LookupTypeEnum[LookupTypeEnum["CommonCategoryLookupTransactions"] = 30207] = "CommonCategoryLookupTransactions";
LookupTypeEnum[LookupTypeEnum["DisplayCategoryOnHomePage"] = 30253] = "DisplayCategoryOnHomePage";
return LookupTypeEnum;
}({});
var LookupEnum =
/*@__PURE__*/
function (LookupEnum) {
LookupEnum[LookupEnum["Assets_DataType_List"] = 30825] = "Assets_DataType_List";
LookupEnum[LookupEnum["AssetsLocal_DataType_List"] = 30745] = "AssetsLocal_DataType_List"; //Assets_DataType_Icon = 30746, //for local assert master icon
LookupEnum[LookupEnum["Assets_DataType_Icon"] = 30826] = "Assets_DataType_Icon";
LookupEnum[LookupEnum["AssetsLocal_DataType_Icon"] = 30746] = "AssetsLocal_DataType_Icon";
LookupEnum[LookupEnum["Assets_DataType_Assets"] = 30827] = "Assets_DataType_Assets";
LookupEnum[LookupEnum["AssetsLocal_DataType_Assets"] = 30747] = "AssetsLocal_DataType_Assets";
LookupEnum[LookupEnum["Assets_EBookletFlipBookFrom"] = 31303] = "Assets_EBookletFlipBookFrom";
LookupEnum[LookupEnum["AssetsLocal_EBookletFlipBookFrom"] = 60284] = "AssetsLocal_EBookletFlipBookFrom";
LookupEnum[LookupEnum["OtherImportantLinkType_OnlyDefaultLinks"] = 30846] = "OtherImportantLinkType_OnlyDefaultLinks";
LookupEnum[LookupEnum["OtherImportantLinkType_OnlyLinksFromGeneralEntry"] = 30847] = "OtherImportantLinkType_OnlyLinksFromGeneralEntry";
LookupEnum[LookupEnum["OtherImportantLinkType_Both"] = 30848] = "OtherImportantLinkType_Both";
LookupEnum[LookupEnum["URLOfSameWebsiteOtherWebsite"] = 30256] = "URLOfSameWebsiteOtherWebsite";
LookupEnum[LookupEnum["PDFFileUpload"] = 30257] = "PDFFileUpload";
LookupEnum[LookupEnum["DataEnteredInScreens"] = 30258] = "DataEnteredInScreens";
LookupEnum[LookupEnum["HasSubMenu"] = 30272] = "HasSubMenu";
LookupEnum[LookupEnum["CategorySubMenu"] = 30253] = "CategorySubMenu";
LookupEnum[LookupEnum["DisplayInTabOnHomePage"] = 31327] = "DisplayInTabOnHomePage";
LookupEnum[LookupEnum["TransactionSubMenu"] = 30254] = "TransactionSubMenu";
LookupEnum[LookupEnum["OrderPreviousUrlSource_DepartmentPage"] = 31669] = "OrderPreviousUrlSource_DepartmentPage";
LookupEnum[LookupEnum["OrderPreviousUrlSource_ExternalWebsite"] = 31668] = "OrderPreviousUrlSource_ExternalWebsite";
return LookupEnum;
}({});
/***/
},
/***/
"SeVD":
/***/
function SeVD(module, __webpack_exports__, __webpack_require__) {
"use strict"; // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/subscribeToArray.js
var subscribeToArray = __webpack_require__("ngJS"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/hostReportError.js
var hostReportError = __webpack_require__("NJ4a"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js
var subscribeToPromise = function subscribeToPromise(promise) {
return function (subscriber) {
promise.then(function (value) {
if (!subscriber.closed) {
subscriber.next(value);
subscriber.complete();
}
}, function (err) {
return subscriber.error(err);
}).then(null, hostReportError["a"
/* hostReportError */
]);
return subscriber;
};
}; //# sourceMappingURL=subscribeToPromise.js.map
// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/symbol/iterator.js
var symbol_iterator = __webpack_require__("Lhse"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/subscribeToIterable.js
var subscribeToIterable = function subscribeToIterable(iterable) {
return function (subscriber) {
var iterator = iterable[symbol_iterator["a"
/* iterator */
]]();
do {
var item = void 0;
try {
item = iterator.next();
} catch (err) {
subscriber.error(err);
return subscriber;
}
if (item.done) {
subscriber.complete();
break;
}
subscriber.next(item.value);
if (subscriber.closed) {
break;
}
} while (true);
if (typeof iterator["return"] === 'function') {
subscriber.add(function () {
if (iterator["return"]) {
iterator["return"]();
}
});
}
return subscriber;
};
}; //# sourceMappingURL=subscribeToIterable.js.map
// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/symbol/observable.js
var observable = __webpack_require__("kJWO"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js
var subscribeToObservable = function subscribeToObservable(obj) {
return function (subscriber) {
var obs = obj[observable["a"
/* observable */
]]();
if (typeof obs.subscribe !== 'function') {
throw new TypeError('Provided object does not correctly implement Symbol.observable');
} else {
return obs.subscribe(subscriber);
}
};
}; //# sourceMappingURL=subscribeToObservable.js.map
// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js
var isArrayLike = __webpack_require__("I55L"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/isPromise.js
var isPromise = __webpack_require__("c2HN"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/util/isObject.js
var isObject = __webpack_require__("XoHu"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return subscribeTo;
});
var subscribeTo = function subscribeTo(result) {
if (!!result && typeof result[observable["a"
/* observable */
]] === 'function') {
return subscribeToObservable(result);
} else if (Object(isArrayLike["a"
/* isArrayLike */
])(result)) {
return Object(subscribeToArray["a"
/* subscribeToArray */
])(result);
} else if (Object(isPromise["a"
/* isPromise */
])(result)) {
return subscribeToPromise(result);
} else if (!!result && typeof result[symbol_iterator["a"
/* iterator */
]] === 'function') {
return subscribeToIterable(result);
} else {
var value = Object(isObject["a"
/* isObject */
])(result) ? 'an invalid object' : "'".concat(result, "'");
var msg = "You provided ".concat(value, " where a stream was expected.") + ' You can provide an Observable, Promise, Array, or Iterable.';
throw new TypeError(msg);
}
}; //# sourceMappingURL=subscribeTo.js.map
/***/
},
/***/
"SpAZ":
/***/
function SpAZ(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return identity;
});
function identity(x) {
return x;
} //# sourceMappingURL=identity.js.map
/***/
},
/***/
"Sy1n":
/***/
function Sy1n(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AppComponent;
});
/* harmony import */
var _Shared_Model_dpt_district_website_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ylkv");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("AytR");
/* harmony import */
var _Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("RVz6");
/* harmony import */
var _Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("9h9k");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("fXoL");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("tyNb");
/* harmony import */
var _Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("LYBR");
/* harmony import */
var _Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("qVlC");
/* harmony import */
var _Shared_Service_department_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("6mOv");
/* harmony import */
var _Shared_Helper_loader_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("vwiZ");
/* harmony import */
var _Shared_Service_app_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("71LL");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("jhN1");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("ofXK");
/* harmony import */
var angular_progress_bar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("nUjy");
/* harmony import */
var _loader_loader_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("kQyY");
/* harmony import */
var _header_header_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("fECr");
/* harmony import */
var _footer_footer_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("fp1T");
var _c0 = ["skipperMainContent"];
var _c1 = ["skipperMenuContent"];
var _c2 = ["pageBody"];
var _c3 = function _c3() {
return {
"0": "#00cbcb",
"15": "#f9c3d3",
"25": "#ffc107"
};
};
function AppComponent_progress_bar_0_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](0, "progress-bar", 4);
}
if (rf & 2) {
var ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("progress", ctx_r117.CompletedProcess)("color-degraded", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction0 */
"Dc"](2, _c3));
}
}
function AppComponent_ng_container_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](1, "div", 5, 6);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](3, "router-outlet");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
}
function AppComponent_ng_container_7_app_loader_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](0, "app-loader");
}
}
function AppComponent_ng_container_7_app_header_2_Template(rf, ctx) {
if (rf & 1) {
var _r128 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](0, "app-header", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵlistener */
"ic"]("skipToMainContent", function AppComponent_ng_container_7_app_header_2_Template_app_header_skipToMainContent_0_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r128);
var ctx_r127 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r127.skipToMainContent();
})("skipToNavbar", function AppComponent_ng_container_7_app_header_2_Template_app_header_skipToNavbar_0_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r128);
var ctx_r129 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r129.skipToNavbar();
})("SetTheme", function AppComponent_ng_container_7_app_header_2_Template_app_header_SetTheme_0_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r128);
var ctx_r130 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r130.setTheme($event);
})("fontSize", function AppComponent_ng_container_7_app_header_2_Template_app_header_fontSize_0_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵrestoreView */
"Mc"](_r128);
var ctx_r131 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r131.setFont($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("DepartmentData", ctx_r123.dptModel);
}
}
function AppComponent_ng_container_7_app_footer_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](0, "app-footer", 11);
}
if (rf & 2) {
var ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("DepartmentData", ctx_r126.dptModel);
}
}
function AppComponent_ng_container_7_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](1, AppComponent_ng_container_7_app_loader_1_Template, 1, 0, "app-loader", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](2, AppComponent_ng_container_7_app_header_2_Template, 1, 1, "app-header", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](3, "async");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](4, "router-outlet");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](5, "div", 5, 8);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelement */
"Wb"](7, "div", 5, 6);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](9, AppComponent_ng_container_7_app_footer_9_Template, 1, 1, "app-footer", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipe */
"nc"](10, "async");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r120.isVisibleLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](3, 3, ctx_r120.appService.showHeader$));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpipeBind1 */
"oc"](10, 5, ctx_r120.appService.showFooter$));
}
}
var _c4 = function _c4(a0) {
return {
"cls-web-my-web": a0
};
};
var AppComponent =
/*@__PURE__*/
function () {
var AppComponent =
/*#__PURE__*/
function () {
function AppComponent(translate, router, renderer, cd, _commonService, _dptDistrictWebsiteService, _departmentService, loaderService, appService, _cdRef, _route, sanitizer, metaTagService, rendererFactory) {
var _this108 = this;
_classCallCheck(this, AppComponent);
this.translate = translate;
this.router = router;
this.renderer = renderer;
this.cd = cd;
this._commonService = _commonService;
this._dptDistrictWebsiteService = _dptDistrictWebsiteService;
this._departmentService = _departmentService;
this.loaderService = loaderService;
this.appService = appService;
this._cdRef = _cdRef;
this._route = _route;
this.sanitizer = sanitizer;
this.metaTagService = metaTagService;
this.islogin = true;
this.fontSize = 14;
this.isVisibleLoader = true;
this.isVisibleProgressBar = false;
this.dptModel = new _Shared_Model_dpt_district_website_model__WEBPACK_IMPORTED_MODULE_0__[
/* DepartmentDetailModel */
"b"]();
this.enumdata = _Shared_Enum_lookup_type_enum__WEBPACK_IMPORTED_MODULE_2__[
/* LookupTypeEnum */
"b"];
this.deptCodeEnum = _Shared_Enum_jankalyan_enum__WEBPACK_IMPORTED_MODULE_3__[
/* DepartmentCodeEnum */
"a"];
this.menuBarClass = '';
this.templateClass = '';
this.keywords = '';
this.description = '';
var renderer1 = rendererFactory.createRenderer(null, null);
renderer1.removeAttribute(document.body.querySelector('app-root'), 'ng-version');
this.loaderService.CompletedProcess.subscribe(function (value) {
_this108.CompletedProcess = value;
_this108.cd.detectChanges();
});
this.setLanguage();
setTimeout(function () {
_this108.setTheme();
_this108._commonService.updateMenu.next();
}, 200);
if (this.router.url.replace("/", "").includes("launching")) {
sessionStorage.clear();
}
}
return _createClass2(AppComponent, [{
key: "ngAfterViewInit",
value: function ngAfterViewInit() {
var _a;
(_a = document.querySelector('app-root')) === null || _a === void 0 ? void 0 : _a.removeAttribute('ng-version');
}
}, {
key: "setLanguage",
value: function setLanguage() {
var _this109 = this;
var _language = localStorage.getItem("language");
if (_language && _language === 'en') {
this.translate.use('en');
} else {
this.translate.use('hi');
} // overwrite language if passed in url as '?lan=en'
this._route.queryParams.subscribe(function (params) {
var lan = params.lan;
_this109._commonService.changeLanguage(lan);
});
}
}, {
key: "ngOnInit",
value: function ngOnInit() {
var isAuth = sessionStorage.getItem("IsAuthenticate") ? JSON.parse(sessionStorage.getItem("IsAuthenticate")) : false;
if (isAuth || !src_environments_environment__WEBPACK_IMPORTED_MODULE_1__[
/* environment */
"a"].LoginEnable) {
this.islogin = true;
} else {
localStorage.setItem("returnUrl", window.location.href);
this.router.navigate(["login"]);
}
this.navigateSitePage();
this.menuBarClass = this._commonService.GetLocalStorageVal('MenuBarClass');
this.templateClass = this._commonService.GetLocalStorageVal('TemplateClass');
} // @HostListener("window:unload", ["$event"])
// beforeUnloadHandler(event) {
// // if (event) {
// // sessionStorage.clear();
// localStorage.clear();
// // }
// }
}, {
key: "VarifyLogin",
value: function VarifyLogin() {
var isLogin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
this.islogin = isLogin;
}
}, {
key: "setFont",
value: function setFont(size) {
if (size == undefined) {
this.fontSize = sessionStorage.getItem("fontSize") != null ? Number(sessionStorage.getItem("fontSize")) : this.fontSize;
} else {
this.fontSize = size;
sessionStorage.setItem("fontSize", this.fontSize.toString());
}
this.pageBody.nativeElement.style.fontSize = "".concat(this.fontSize, "px");
}
}, {
key: "showLoaderEvent",
value: function showLoaderEvent() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
this.isVisibleLoader = value;
}
}, {
key: "showProgressBarEvent",
value: function showProgressBarEvent() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
this.isVisibleProgressBar = value;
this._cdRef.detectChanges();
}
}, {
key: "setTheme",
value: function setTheme() {
var _this110 = this;
var cssClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
if (cssClass == "") {
cssClass = localStorage.getItem("currentTheme") != null ? localStorage.getItem("currentTheme") : "theme-default";
} else {
localStorage.setItem("currentTheme", cssClass);
}
var el = this.pageBody.nativeElement;
var classes = el.className.split(" ");
var regex = /^b\d$/;
classes.forEach(function (cl) {
if (cl.length > 0) {
_this110.renderer.removeClass(el, cl);
}
});
if (cssClass != undefined) {
this.renderer.addClass(el, cssClass);
} else {
this.renderer.addClass(el, "theme-default");
}
}
}, {
key: "navigateSitePage",
value: function navigateSitePage() {
var _this111 = this;
var _a, _b, _c, _d;
var websiteLink = window.location.href;
websiteLink = (_d = (_c = (_b = (_a = websiteLink) === null || _a === void 0 ? void 0 : _a.replace(/(^\w+:|^)\/\//, '')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === null || _c === void 0 ? void 0 : _c.split('/')[0]) === null || _d === void 0 ? void 0 : _d.replace('www.', '');
setTimeout(function () {
var _a, _b;
var _wesiteCode = '';
switch (websiteLink) {
//#region District Websites
case "ajmer.rajasthan.gov.in":
case "www.ajmer.rajasthan.gov.in":
case "ajmer.rajasthan.gov.in/":
case "www.ajmer.rajasthan.gov.in/":
case "ajmer.rajasthan.gov.in/home":
case "www.ajmer.rajasthan.gov.in/home":
_wesiteCode = '22';
break;
case "alwar.rajasthan.gov.in":
case "www.alwar.rajasthan.gov.in":
case "alwar.rajasthan.gov.in/":
case "www.alwar.rajasthan.gov.in/":
case "alwar.rajasthan.gov.in/home":
case "www.alwar.rajasthan.gov.in/home":
_wesiteCode = '23';
break;
case "banswara.rajasthan.gov.in":
case "www.banswara.rajasthan.gov.in":
case "banswara.rajasthan.gov.in/":
case "www.banswara.rajasthan.gov.in/":
case "banswara.rajasthan.gov.in/home":
case "www.banswara.rajasthan.gov.in/home":
_wesiteCode = '24';
break;
case "baran.rajasthan.gov.in":
case "www.baran.rajasthan.gov.in":
case "baran.rajasthan.gov.in/":
case "www.baran.rajasthan.gov.in/":
case "baran.rajasthan.gov.in/home":
case "www.baran.rajasthan.gov.in/home":
_wesiteCode = '25';
break;
case "barmer.rajasthan.gov.in":
case "www.barmer.rajasthan.gov.in":
case "barmer.rajasthan.gov.in/":
case "www.barmer.rajasthan.gov.in/":
case "barmer.rajasthan.gov.in/home":
case "www.barmer.rajasthan.gov.in/home":
_wesiteCode = '26';
break;
case "bharatpur.rajasthan.gov.in":
case "www.bharatpur.rajasthan.gov.in":
case "bharatpur.rajasthan.gov.in/":
case "www.bharatpur.rajasthan.gov.in/":
case "bharatpur.rajasthan.gov.in/home":
case "www.bharatpur.rajasthan.gov.in/home":
_wesiteCode = '27';
break;
case "bhilwara.rajasthan.gov.in":
case "www.bhilwara.rajasthan.gov.in":
case "bhilwara.rajasthan.gov.in/":
case "www.bhilwara.rajasthan.gov.in/":
case "bhilwara.rajasthan.gov.in/home":
case "www.bhilwara.rajasthan.gov.in/home":
_wesiteCode = '28';
break;
case "bikaner.rajasthan.gov.in":
case "www.bikaner.rajasthan.gov.in":
case "bikaner.rajasthan.gov.in/":
case "www.bikaner.rajasthan.gov.in/":
case "bikaner.rajasthan.gov.in/home":
case "www.bikaner.rajasthan.gov.in/home":
_wesiteCode = '29';
break;
case "bundi.rajasthan.gov.in":
case "www.bundi.rajasthan.gov.in":
case "bundi.rajasthan.gov.in/":
case "www.bundi.rajasthan.gov.in/":
case "bundi.rajasthan.gov.in/home":
case "www.bundi.rajasthan.gov.in/home":
_wesiteCode = '30';
break;
case "chittorgarh.rajasthan.gov.in":
case "www.chittorgarh.rajasthan.gov.in":
case "chittorgarh.rajasthan.gov.in/":
case "www.chittorgarh.rajasthan.gov.in/":
case "chittorgarh.rajasthan.gov.in/home":
case "www.chittorgarh.rajasthan.gov.in/home":
_wesiteCode = '31';
break;
case "churu.rajasthan.gov.in":
case "www.churu.rajasthan.gov.in":
case "churu.rajasthan.gov.in/":
case "www.churu.rajasthan.gov.in/":
case "churu.rajasthan.gov.in/home":
case "www.churu.rajasthan.gov.in/home":
_wesiteCode = '32';
break;
case "dausa.rajasthan.gov.in":
case "www.dausa.rajasthan.gov.in":
case "dausa.rajasthan.gov.in/":
case "www.dausa.rajasthan.gov.in/":
case "dausa.rajasthan.gov.in/home":
case "www.dausa.rajasthan.gov.in/home":
_wesiteCode = '33';
break;
case "dholpur.rajasthan.gov.in":
case "www.dholpur.rajasthan.gov.in":
case "dholpur.rajasthan.gov.in/":
case "www.dholpur.rajasthan.gov.in/":
case "dholpur.rajasthan.gov.in/home":
case "www.dholpur.rajasthan.gov.in/home":
_wesiteCode = '34';
break;
case "dungarpur.rajasthan.gov.in":
case "www.dungarpur.rajasthan.gov.in":
case "dungarpur.rajasthan.gov.in/":
case "www.dungarpur.rajasthan.gov.in/":
case "dungarpur.rajasthan.gov.in/home":
case "www.dungarpur.rajasthan.gov.in/home":
_wesiteCode = '35';
break;
case "hanumangarh.rajasthan.gov.in":
case "www.hanumangarh.rajasthan.gov.in":
case "hanumangarh.rajasthan.gov.in/":
case "www.hanumangarh.rajasthan.gov.in/":
case "hanumangarh.rajasthan.gov.in/home":
case "www.hanumangarh.rajasthan.gov.in/home":
_wesiteCode = '36';
break;
case "jaipur.rajasthan.gov.in":
case "www.jaipur.rajasthan.gov.in":
case "jaipur.rajasthan.gov.in/":
case "www.jaipur.rajasthan.gov.in/":
case "jaipur.rajasthan.gov.in/home":
case "www.jaipur.rajasthan.gov.in/home":
_wesiteCode = '37';
break;
case "jaisalmer.rajasthan.gov.in":
case "www.jaisalmer.rajasthan.gov.in":
case "jaisalmer.rajasthan.gov.in/":
case "www.jaisalmer.rajasthan.gov.in/":
case "jaisalmer.rajasthan.gov.in/home":
case "www.jaisalmer.rajasthan.gov.in/home":
_wesiteCode = '38';
break;
case "jalore.rajasthan.gov.in":
case "www.jalore.rajasthan.gov.in":
case "jalore.rajasthan.gov.in/":
case "www.jalore.rajasthan.gov.in/":
case "jalore.rajasthan.gov.in/home":
case "www.jalore.rajasthan.gov.in/home":
_wesiteCode = '39';
break;
case "jhalawar.rajasthan.gov.in":
case "www.jhalawar.rajasthan.gov.in":
case "jhalawar.rajasthan.gov.in/":
case "www.jhalawar.rajasthan.gov.in/":
case "jhalawar.rajasthan.gov.in/home":
case "www.jhalawar.rajasthan.gov.in/home":
_wesiteCode = '40';
break;
case "jhunjhunu.rajasthan.gov.in":
case "www.jhunjhunu.rajasthan.gov.in":
case "jhunjhunu.rajasthan.gov.in/":
case "www.jhunjhunu.rajasthan.gov.in/":
case "jhunjhunu.rajasthan.gov.in/home":
case "www.jhunjhunu.rajasthan.gov.in/home":
_wesiteCode = '41';
break;
case "jodhpur.rajasthan.gov.in":
case "www.jodhpur.rajasthan.gov.in":
case "jodhpur.rajasthan.gov.in/":
case "www.jodhpur.rajasthan.gov.in/":
case "jodhpur.rajasthan.gov.in/home":
case "www.jodhpur.rajasthan.gov.in/home":
_wesiteCode = '42';
break;
case "karauli.rajasthan.gov.in":
case "www.karauli.rajasthan.gov.in":
case "karauli.rajasthan.gov.in/":
case "www.karauli.rajasthan.gov.in/":
case "karauli.rajasthan.gov.in/home":
case "www.karauli.rajasthan.gov.in/home":
_wesiteCode = '43';
break;
case "kota.rajasthan.gov.in":
case "www.kota.rajasthan.gov.in":
case "kota.rajasthan.gov.in/":
case "www.kota.rajasthan.gov.in/":
case "kota.rajasthan.gov.in/home":
case "www.kota.rajasthan.gov.in/home":
_wesiteCode = '44';
break;
case "nagaur.rajasthan.gov.in":
case "www.nagaur.rajasthan.gov.in":
case "nagaur.rajasthan.gov.in/":
case "www.nagaur.rajasthan.gov.in/":
case "nagaur.rajasthan.gov.in/home":
case "www.nagaur.rajasthan.gov.in/home":
_wesiteCode = '45';
break;
case "pali.rajasthan.gov.in":
case "www.pali.rajasthan.gov.in":
case "pali.rajasthan.gov.in/":
case "www.pali.rajasthan.gov.in/":
case "pali.rajasthan.gov.in/home":
case "www.pali.rajasthan.gov.in/home":
_wesiteCode = '46';
break;
case "pratapgarh.rajasthan.gov.in":
case "www.pratapgarh.rajasthan.gov.in":
case "pratapgarh.rajasthan.gov.in/":
case "www.pratapgarh.rajasthan.gov.in/":
case "pratapgarh.rajasthan.gov.in/home":
case "www.pratapgarh.rajasthan.gov.in/home":
_wesiteCode = '47';
break;
case "rajsamand.rajasthan.gov.in":
case "www.rajsamand.rajasthan.gov.in":
case "rajsamand.rajasthan.gov.in/":
case "www.rajsamand.rajasthan.gov.in/":
case "rajsamand.rajasthan.gov.in/home":
case "www.rajsamand.rajasthan.gov.in/home":
_wesiteCode = '48';
break;
case "sikar.rajasthan.gov.in":
case "www.sikar.rajasthan.gov.in":
case "sikar.rajasthan.gov.in/":
case "www.sikar.rajasthan.gov.in/":
case "sikar.rajasthan.gov.in/home":
case "www.sikar.rajasthan.gov.in/home":
_wesiteCode = '49';
break;
case "sirohi.rajasthan.gov.in":
case "www.sirohi.rajasthan.gov.in":
case "sirohi.rajasthan.gov.in/":
case "www.sirohi.rajasthan.gov.in/":
case "sirohi.rajasthan.gov.in/home":
case "www.sirohi.rajasthan.gov.in/home":
_wesiteCode = '50';
break;
case "sriganganagar.rajasthan.gov.in":
case "www.sriganganagar.rajasthan.gov.in":
case "sriganganagar.rajasthan.gov.in/":
case "www.sriganganagar.rajasthan.gov.in/":
case "sriganganagar.rajasthan.gov.in/home":
case "www.sriganganagar.rajasthan.gov.in/home":
_wesiteCode = '51';
break;
case "sawaimadhopur.rajasthan.gov.in":
case "www.sawaimadhopur.rajasthan.gov.in":
case "sawaimadhopur.rajasthan.gov.in/":
case "www.sawaimadhopur.rajasthan.gov.in/":
case "sawaimadhopur.rajasthan.gov.in/home":
case "www.sawaimadhopur.rajasthan.gov.in/home":
_wesiteCode = '52';
break;
case "udaipur.rajasthan.gov.in":
case "www.udaipur.rajasthan.gov.in":
case "udaipur.rajasthan.gov.in/":
case "www.udaipur.rajasthan.gov.in/":
case "udaipur.rajasthan.gov.in/home":
case "www.udaipur.rajasthan.gov.in/home":
_wesiteCode = '54';
break;
case "tonk.rajasthan.gov.in":
case "www.tonk.rajasthan.gov.in":
case "tonk.rajasthan.gov.in/":
case "www.tonk.rajasthan.gov.in/":
case "tonk.rajasthan.gov.in/home":
case "www.tonk.rajasthan.gov.in/home":
_wesiteCode = '194';
break;
case "anupgarh.rajasthan.gov.in":
case "www.anupgarh.rajasthan.gov.in":
case "anupgarh.rajasthan.gov.in/":
case "www.anupgarh.rajasthan.gov.in/":
case "anupgarh.rajasthan.gov.in/home":
case "www.anupgarh.rajasthan.gov.in/home":
_wesiteCode = '1273';
break;
case "balotra.rajasthan.gov.in":
case "www.balotra.rajasthan.gov.in":
case "balotra.rajasthan.gov.in/":
case "www.balotra.rajasthan.gov.in/":
case "balotra.rajasthan.gov.in/home":
case "www.balotra.rajasthan.gov.in/home":
_wesiteCode = '1274';
break;
case "beawar.rajasthan.gov.in":
case "www.beawar.rajasthan.gov.in":
case "beawar.rajasthan.gov.in/":
case "www.beawar.rajasthan.gov.in/":
case "beawar.rajasthan.gov.in/home":
case "www.beawar.rajasthan.gov.in/home":
_wesiteCode = '1275';
break;
case "deeg.rajasthan.gov.in":
case "www.deeg.rajasthan.gov.in":
case "deeg.rajasthan.gov.in/":
case "www.deeg.rajasthan.gov.in/":
case "deeg.rajasthan.gov.in/home":
case "www.deeg.rajasthan.gov.in/home":
_wesiteCode = '1276';
break;
case "deedwana-kuchaman.rajasthan.gov.in":
case "www.deedwana-kuchaman.rajasthan.gov.in":
case "deedwana-kuchaman.rajasthan.gov.in/":
case "www.deedwana-kuchaman.rajasthan.gov.in/":
case "deedwana-kuchaman.rajasthan.gov.in/home":
case "www.deedwana-kuchaman.rajasthan.gov.in/home":
case "didwana-kuchaman.rajasthan.gov.in":
case "www.didwana-kuchaman.rajasthan.gov.in":
case "didwana-kuchaman.rajasthan.gov.in/":
case "www.didwana-kuchaman.rajasthan.gov.in/":
case "didwana-kuchaman.rajasthan.gov.in/home":
case "www.didwana-kuchaman.rajasthan.gov.in/home":
_wesiteCode = '1277';
break;
case "dudu.rajasthan.gov.in":
case "www.dudu.rajasthan.gov.in":
case "dudu.rajasthan.gov.in/":
case "www.dudu.rajasthan.gov.in/":
case "dudu.rajasthan.gov.in/home":
case "www.dudu.rajasthan.gov.in/home":
_wesiteCode = '1278';
break;
case "gangapurcity.rajasthan.gov.in":
case "www.gangapurcity.rajasthan.gov.in":
case "gangapurcity.rajasthan.gov.in/":
case "www.gangapurcity.rajasthan.gov.in/":
case "gangapurcity.rajasthan.gov.in/home":
case "www.gangapurcity.rajasthan.gov.in/home":
_wesiteCode = '1279';
break;
case "jaipurural.rajasthan.gov.in":
case "www.jaipurural.rajasthan.gov.in":
case "jaipurural.rajasthan.gov.in/":
case "www.jaipurural.rajasthan.gov.in/":
case "jaipurural.rajasthan.gov.in/home":
case "www.jaipurural.rajasthan.gov.in/home":
_wesiteCode = '1272';
break;
case "jodhpurrural.rajasthan.gov.in":
case "www.jodhpurrural.rajasthan.gov.in":
case "jodhpurrural.rajasthan.gov.in/":
case "www.jodhpurrural.rajasthan.gov.in/":
case "jodhpurrural.rajasthan.gov.in/home":
case "www.jodhpurrural.rajasthan.gov.in/home":
_wesiteCode = '1281';
break;
case "kekri.rajasthan.gov.in":
case "www.kekri.rajasthan.gov.in":
case "kekri.rajasthan.gov.in/":
case "www.kekri.rajasthan.gov.in/":
case "kekri.rajasthan.gov.in/home":
case "www.kekri.rajasthan.gov.in/home":
_wesiteCode = '1280';
break;
case "khairthaltijara.rajasthan.gov.in":
case "www.khairthaltijara.rajasthan.gov.in":
case "khairthaltijara.rajasthan.gov.in/":
case "www.khairthaltijara.rajasthan.gov.in/":
case "khairthaltijara.rajasthan.gov.in/home":
case "www.khairthaltijara.rajasthan.gov.in/home":
_wesiteCode = '1283';
break;
case "kotputlibehror.rajasthan.gov.in":
case "www.kotputlibehror.rajasthan.gov.in":
case "kotputlibehror.rajasthan.gov.in/":
case "www.kotputlibehror.rajasthan.gov.in/":
case "kotputlibehror.rajasthan.gov.in/home":
case "www.kotputlibehror.rajasthan.gov.in/home":
_wesiteCode = '1282';
break;
case "neemkathana.rajasthan.gov.in":
case "www.neemkathana.rajasthan.gov.in":
case "neemkathana.rajasthan.gov.in/":
case "www.neemkathana.rajasthan.gov.in/":
case "neemkathana.rajasthan.gov.in/home":
case "www.neemkathana.rajasthan.gov.in/home":
_wesiteCode = '1284';
break;
case "phalodi.rajasthan.gov.in":
case "www.phalodi.rajasthan.gov.in":
case "phalodi.rajasthan.gov.in/":
case "www.phalodi.rajasthan.gov.in/":
case "phalodi.rajasthan.gov.in/home":
case "www.phalodi.rajasthan.gov.in/home":
_wesiteCode = '1285';
break;
case "salumber.rajasthan.gov.in":
case "www.salumber.rajasthan.gov.in":
case "salumber.rajasthan.gov.in/":
case "www.salumber.rajasthan.gov.in/":
case "salumber.rajasthan.gov.in/home":
case "www.salumber.rajasthan.gov.in/home":
_wesiteCode = '1286';
break;
case "sanchore.rajasthan.gov.in":
case "www.sanchore.rajasthan.gov.in":
case "sanchore.rajasthan.gov.in/":
case "www.sanchore.rajasthan.gov.in/":
case "sanchore.rajasthan.gov.in/home":
case "www.sanchore.rajasthan.gov.in/home":
_wesiteCode = '1287';
break;
case "shahpura.rajasthan.gov.in":
case "www.shahpura.rajasthan.gov.in":
case "shahpura.rajasthan.gov.in/":
case "www.shahpura.rajasthan.gov.in/":
case "shahpura.rajasthan.gov.in/home":
case "www.shahpura.rajasthan.gov.in/home":
_wesiteCode = '1288';
break;
//#endregion
//#region Planning Department
case "plan.rajasthan.gov.in":
case "www.plan.rajasthan.gov.in":
case "plan.rajasthan.gov.in/":
case "www.plan.rajasthan.gov.in/":
case "plan.rajasthan.gov.in/home":
case "www.plan.rajasthan.gov.in/home":
_wesiteCode = '111';
break;
case "evaluation.rajasthan.gov.in":
case "www.evaluation.rajasthan.gov.in":
case "evaluation.rajasthan.gov.in/":
case "www.evaluation.rajasthan.gov.in/":
case "evaluation.rajasthan.gov.in/home":
case "www.evaluation.rajasthan.gov.in/home":
_wesiteCode = '65';
break;
case "statistics.rajasthan.gov.in":
case "www.statistics.rajasthan.gov.in":
case "statistics.rajasthan.gov.in/":
case "www.statistics.rajasthan.gov.in/":
case "statistics.rajasthan.gov.in/home":
case "www.statistics.rajasthan.gov.in/home":
_wesiteCode = '166';
break;
case "plan-mp.rajasthan.gov.in":
case "www.plan-mp.rajasthan.gov.in":
case "plan-mp.rajasthan.gov.in/":
case "www.plan-mp.rajasthan.gov.in/":
case "plan-mp.rajasthan.gov.in/home":
case "www.plan-mp.rajasthan.gov.in/home":
_wesiteCode = '100';
break;
//#endregion
//#region Police Department
case "policedepartment.rajasthan.gov.in":
case "www.policedepartment.rajasthan.gov.in":
case "policedepartment.rajasthan.gov.in/":
case "www.policedepartment.rajasthan.gov.in/":
case "policedepartment.rajasthan.gov.in/home":
case "www.policedepartment.rajasthan.gov.in/home":
_wesiteCode = '967';
break;
case "ajmerpolice.rajasthan.gov.in":
case "www.ajmerpolice.rajasthan.gov.in":
case "ajmerpolice.rajasthan.gov.in/":
case "www.ajmerpolice.rajasthan.gov.in/":
case "ajmerpolice.rajasthan.gov.in/home":
case "www.ajmerpolice.rajasthan.gov.in/home":
_wesiteCode = '411';
break;
case "alwarpolice.rajasthan.gov.in":
case "www.alwarpolice.rajasthan.gov.in":
case "alwarpolice.rajasthan.gov.in/":
case "www.alwarpolice.rajasthan.gov.in/":
case "alwarpolice.rajasthan.gov.in/home":
case "www.alwarpolice.rajasthan.gov.in/home":
_wesiteCode = '412';
break;
case "banswarapolice.rajasthan.gov.in":
case "www.banswarapolice.rajasthan.gov.in":
case "banswarapolice.rajasthan.gov.in/":
case "www.banswarapolice.rajasthan.gov.in/":
case "banswarapolice.rajasthan.gov.in/home":
case "www.banswarapolice.rajasthan.gov.in/home":
_wesiteCode = '413';
break;
case "baranpolice.rajasthan.gov.in":
case "www.baranpolice.rajasthan.gov.in":
case "baranpolice.rajasthan.gov.in/":
case "www.baranpolice.rajasthan.gov.in/":
case "baranpolice.rajasthan.gov.in/home":
case "www.baranpolice.rajasthan.gov.in/home":
_wesiteCode = '414';
break;
case "barmerpolice.rajasthan.gov.in":
case "www.barmerpolice.rajasthan.gov.in":
case "barmerpolice.rajasthan.gov.in/":
case "www.barmerpolice.rajasthan.gov.in/":
case "barmerpolice.rajasthan.gov.in/home":
case "www.barmerpolice.rajasthan.gov.in/home":
_wesiteCode = '415';
break;
case "bharatpurpolice.rajasthan.gov.in":
case "www.bharatpurpolice.rajasthan.gov.in":
case "bharatpurpolice.rajasthan.gov.in/":
case "www.bharatpurpolice.rajasthan.gov.in/":
case "bharatpurpolice.rajasthan.gov.in/home":
case "www.bharatpurpolice.rajasthan.gov.in/home":
_wesiteCode = '416';
break;
case "bhilwarapolice.rajasthan.gov.in":
case "www.bhilwarapolice.rajasthan.gov.in":
case "bhilwarapolice.rajasthan.gov.in/":
case "www.bhilwarapolice.rajasthan.gov.in/":
case "bhilwarapolice.rajasthan.gov.in/home":
case "www.bhilwarapolice.rajasthan.gov.in/home":
_wesiteCode = '417';
break;
case "bhiwadipolice.rajasthan.gov.in":
case "www.bhiwadipolice.rajasthan.gov.in":
case "bhiwadipolice.rajasthan.gov.in/":
case "www.bhiwadipolice.rajasthan.gov.in/":
case "bhiwadipolice.rajasthan.gov.in/home":
case "www.bhiwadipolice.rajasthan.gov.in/home":
_wesiteCode = '418';
break;
case "bikanerpolice.rajasthan.gov.in":
case "www.bikanerpolice.rajasthan.gov.in":
case "bikanerpolice.rajasthan.gov.in/":
case "www.bikanerpolice.rajasthan.gov.in/":
case "bikanerpolice.rajasthan.gov.in/home":
case "www.bikanerpolice.rajasthan.gov.in/home":
_wesiteCode = '419';
break;
case "bundipolice.rajasthan.gov.in":
case "www.bundipolice.rajasthan.gov.in":
case "bundipolice.rajasthan.gov.in/":
case "www.bundipolice.rajasthan.gov.in/":
case "bundipolice.rajasthan.gov.in/home":
case "www.bundipolice.rajasthan.gov.in/home":
_wesiteCode = '420';
break;
case "chittorgarhpolice.rajasthan.gov.in":
case "www.chittorgarhpolice.rajasthan.gov.in":
case "chittorgarhpolice.rajasthan.gov.in/":
case "www.chittorgarhpolice.rajasthan.gov.in/":
case "chittorgarhpolice.rajasthan.gov.in/home":
case "www.chittorgarhpolice.rajasthan.gov.in/home":
_wesiteCode = '421';
break;
case "churupolice.rajasthan.gov.in":
case "www.churupolice.rajasthan.gov.in":
case "churupolice.rajasthan.gov.in/":
case "www.churupolice.rajasthan.gov.in/":
case "churupolice.rajasthan.gov.in/home":
case "www.churupolice.rajasthan.gov.in/home":
_wesiteCode = '422';
break;
case "dausapolice.rajasthan.gov.in":
case "www.dausapolice.rajasthan.gov.in":
case "dausapolice.rajasthan.gov.in/":
case "www.dausapolice.rajasthan.gov.in/":
case "dausapolice.rajasthan.gov.in/home":
case "www.dausapolice.rajasthan.gov.in/home":
_wesiteCode = '423';
break;
case "dholpurpolice.rajasthan.gov.in":
case "www.dholpurpolice.rajasthan.gov.in":
case "dholpurpolice.rajasthan.gov.in/":
case "www.dholpurpolice.rajasthan.gov.in/":
case "dholpurpolice.rajasthan.gov.in/home":
case "www.dholpurpolice.rajasthan.gov.in/home":
_wesiteCode = '424';
break;
case "dungarpurpolice.rajasthan.gov.in":
case "www.dungarpurpolice.rajasthan.gov.in":
case "dungarpurpolice.rajasthan.gov.in/":
case "www.dungarpurpolice.rajasthan.gov.in/":
case "dungarpurpolice.rajasthan.gov.in/home":
case "www.dungarpurpolice.rajasthan.gov.in/home":
_wesiteCode = '425';
break;
case "grpajmerpolice.rajasthan.gov.in":
case "www.grpajmerpolice.rajasthan.gov.in":
case "grpajmerpolice.rajasthan.gov.in/":
case "www.grpajmerpolice.rajasthan.gov.in/":
case "grpajmerpolice.rajasthan.gov.in/home":
case "www.grpajmerpolice.rajasthan.gov.in/home":
_wesiteCode = '448';
break;
case "grpjodhpurpolice.rajasthan.gov.in":
case "www.grpjodhpurpolice.rajasthan.gov.in":
case "grpjodhpurpolice.rajasthan.gov.in/":
case "www.grpjodhpurpolice.rajasthan.gov.in/":
case "grpjodhpurpolice.rajasthan.gov.in/home":
case "www.grpjodhpurpolice.rajasthan.gov.in/home":
_wesiteCode = '449';
break;
case "hanumangarhpolice.rajasthan.gov.in":
case "www.hanumangarhpolice.rajasthan.gov.in":
case "hanumangarhpolice.rajasthan.gov.in/":
case "www.hanumangarhpolice.rajasthan.gov.in/":
case "hanumangarhpolice.rajasthan.gov.in/home":
case "www.hanumangarhpolice.rajasthan.gov.in/home":
_wesiteCode = '426';
break;
case "jaipurpolice.rajasthan.gov.in":
case "www.jaipurpolice.rajasthan.gov.in":
case "jaipurpolice.rajasthan.gov.in/":
case "www.jaipurpolice.rajasthan.gov.in/":
case "jaipurpolice.rajasthan.gov.in/home":
case "www.jaipurpolice.rajasthan.gov.in/home":
_wesiteCode = '410';
break;
case "jaipurruralpolice.rajasthan.gov.in":
case "www.jaipurruralpolice.rajasthan.gov.in":
case "jaipurruralpolice.rajasthan.gov.in/":
case "www.jaipurruralpolice.rajasthan.gov.in/":
case "jaipurruralpolice.rajasthan.gov.in/home":
case "www.jaipurruralpolice.rajasthan.gov.in/home":
_wesiteCode = '427';
break;
case "jaisalmerpolice.rajasthan.gov.in":
case "www.jaisalmerpolice.rajasthan.gov.in":
case "jaisalmerpolice.rajasthan.gov.in/":
case "www.jaisalmerpolice.rajasthan.gov.in/":
case "jaisalmerpolice.rajasthan.gov.in/home":
case "www.jaisalmerpolice.rajasthan.gov.in/home":
_wesiteCode = '428';
break;
case "jalorepolice.rajasthan.gov.in":
case "www.jalorepolice.rajasthan.gov.in":
case "jalorepolice.rajasthan.gov.in/":
case "www.jalorepolice.rajasthan.gov.in/":
case "jalorepolice.rajasthan.gov.in/home":
case "www.jalorepolice.rajasthan.gov.in/home":
_wesiteCode = '429';
break;
case "jhalawarpolice.rajasthan.gov.in":
case "www.jhalawarpolice.rajasthan.gov.in":
case "jhalawarpolice.rajasthan.gov.in/":
case "www.jhalawarpolice.rajasthan.gov.in/":
case "jhalawarpolice.rajasthan.gov.in/home":
case "www.jhalawarpolice.rajasthan.gov.in/home":
_wesiteCode = '430';
break;
case "jhunjhunupolice.rajasthan.gov.in":
case "www.jhunjhunupolice.rajasthan.gov.in":
case "jhunjhunupolice.rajasthan.gov.in/":
case "www.jhunjhunupolice.rajasthan.gov.in/":
case "jhunjhunupolice.rajasthan.gov.in/home":
case "www.jhunjhunupolice.rajasthan.gov.in/home":
_wesiteCode = '431';
break;
case "jodhpurcitypolice.rajasthan.gov.in":
case "www.jodhpurcitypolice.rajasthan.gov.in":
case "jodhpurcitypolice.rajasthan.gov.in/":
case "www.jodhpurcitypolice.rajasthan.gov.in/":
case "jodhpurcitypolice.rajasthan.gov.in/home":
case "www.jodhpurcitypolice.rajasthan.gov.in/home":
_wesiteCode = '433';
break;
case "jodhpurruralpolice.rajasthan.gov.in":
case "www.jodhpurruralpolice.rajasthan.gov.in":
case "jodhpurruralpolice.rajasthan.gov.in/":
case "www.jodhpurruralpolice.rajasthan.gov.in/":
case "jodhpurruralpolice.rajasthan.gov.in/home":
case "www.jodhpurruralpolice.rajasthan.gov.in/home":
_wesiteCode = '432';
break;
case "karaulipolice.rajasthan.gov.in":
case "www.karaulipolice.rajasthan.gov.in":
case "karaulipolice.rajasthan.gov.in/":
case "www.karaulipolice.rajasthan.gov.in/":
case "karaulipolice.rajasthan.gov.in/home":
case "www.karaulipolice.rajasthan.gov.in/home":
_wesiteCode = '434';
break;
case "kotacitypolice.rajasthan.gov.in":
case "www.kotacitypolice.rajasthan.gov.in":
case "kotacitypolice.rajasthan.gov.in/":
case "www.kotacitypolice.rajasthan.gov.in/":
case "kotacitypolice.rajasthan.gov.in/home":
case "www.kotacitypolice.rajasthan.gov.in/home":
_wesiteCode = '435';
break;
case "kotaruralpolice.rajasthan.gov.in":
case "www.kotaruralpolice.rajasthan.gov.in":
case "kotaruralpolice.rajasthan.gov.in/":
case "www.kotaruralpolice.rajasthan.gov.in/":
case "kotaruralpolice.rajasthan.gov.in/home":
case "www.kotaruralpolice.rajasthan.gov.in/home":
_wesiteCode = '436';
break;
case "nagaurpolice.rajasthan.gov.in":
case "www.nagaurpolice.rajasthan.gov.in":
case "nagaurpolice.rajasthan.gov.in/":
case "www.nagaurpolice.rajasthan.gov.in/":
case "nagaurpolice.rajasthan.gov.in/home":
case "www.nagaurpolice.rajasthan.gov.in/home":
_wesiteCode = '437';
break;
case "palipolice.rajasthan.gov.in":
case "www.palipolice.rajasthan.gov.in":
case "palipolice.rajasthan.gov.in/":
case "www.palipolice.rajasthan.gov.in/":
case "palipolice.rajasthan.gov.in/home":
case "www.palipolice.rajasthan.gov.in/home":
_wesiteCode = '438';
break;
case "pratapgarhpolice.rajasthan.gov.in":
case "www.pratapgarhpolice.rajasthan.gov.in":
case "pratapgarhpolice.rajasthan.gov.in/":
case "www.pratapgarhpolice.rajasthan.gov.in/":
case "pratapgarhpolice.rajasthan.gov.in/home":
case "www.pratapgarhpolice.rajasthan.gov.in/home":
_wesiteCode = '439';
break;
case "rajsamandpolice.rajasthan.gov.in":
case "www.rajsamandpolice.rajasthan.gov.in":
case "rajsamandpolice.rajasthan.gov.in/":
case "www.rajsamandpolice.rajasthan.gov.in/":
case "rajsamandpolice.rajasthan.gov.in/home":
case "www.rajsamandpolice.rajasthan.gov.in/home":
_wesiteCode = '440';
break;
case "sawaimadhopurpolice.rajasthan.gov.in":
case "www.sawaimadhopurpolice.rajasthan.gov.in":
case "sawaimadhopurpolice.rajasthan.gov.in/":
case "www.sawaimadhopurpolice.rajasthan.gov.in/":
case "sawaimadhopurpolice.rajasthan.gov.in/home":
case "www.sawaimadhopurpolice.rajasthan.gov.in/home":
_wesiteCode = '441';
break;
case "sikarpolice.rajasthan.gov.in":
case "www.sikarpolice.rajasthan.gov.in":
case "sikarpolice.rajasthan.gov.in/":
case "www.sikarpolice.rajasthan.gov.in/":
case "sikarpolice.rajasthan.gov.in/home":
case "www.sikarpolice.rajasthan.gov.in/home":
_wesiteCode = '442';
break;
case "sirohipolice.rajasthan.gov.in":
case "www.sirohipolice.rajasthan.gov.in":
case "sirohipolice.rajasthan.gov.in/":
case "www.sirohipolice.rajasthan.gov.in/":
case "sirohipolice.rajasthan.gov.in/home":
case "www.sirohipolice.rajasthan.gov.in/home":
_wesiteCode = '443';
break;
case "sriganganagarpolice.rajasthan.gov.in":
case "www.sriganganagarpolice.rajasthan.gov.in":
case "sriganganagarpolice.rajasthan.gov.in/":
case "www.sriganganagarpolice.rajasthan.gov.in/":
case "sriganganagarpolice.rajasthan.gov.in/home":
case "www.sriganganagarpolice.rajasthan.gov.in/home":
_wesiteCode = '444';
break;
case "tonkpolice.rajasthan.gov.in":
case "www.tonkpolice.rajasthan.gov.in":
case "tonkpolice.rajasthan.gov.in/":
case "www.tonkpolice.rajasthan.gov.in/":
case "tonkpolice.rajasthan.gov.in/home":
case "www.tonkpolice.rajasthan.gov.in/home":
_wesiteCode = '445';
break;
case "udaipurpolice.rajasthan.gov.in":
case "www.udaipurpolice.rajasthan.gov.in":
case "udaipurpolice.rajasthan.gov.in/":
case "www.udaipurpolice.rajasthan.gov.in/":
case "udaipurpolice.rajasthan.gov.in/home":
case "www.udaipurpolice.rajasthan.gov.in/home":
_wesiteCode = '446';
break;
//#endregion
//#region Animal Husbandry Department
case "fisheries.rajasthan.gov.in":
case "www.fisheries.rajasthan.gov.in":
case "fisheries.rajasthan.gov.in/":
case "www.fisheries.rajasthan.gov.in/":
case "fisheries.rajasthan.gov.in/home":
case "www.fisheries.rajasthan.gov.in/home":
_wesiteCode = '152';
break;
case "rldb.rajasthan.gov.in":
case "www.rldb.rajasthan.gov.in":
case "rldb.rajasthan.gov.in/":
case "www.rldb.rajasthan.gov.in/":
case "rldb.rajasthan.gov.in/home":
case "www.rldb.rajasthan.gov.in/home":
_wesiteCode = '187';
break;
case "gopalan.rajasthan.gov.in":
case "www.gopalan.rajasthan.gov.in":
case "gopalan.rajasthan.gov.in/":
case "www.gopalan.rajasthan.gov.in/":
case "gopalan.rajasthan.gov.in/home":
case "www.gopalan.rajasthan.gov.in/home":
_wesiteCode = '147';
break;
case "sarasmilkfed.rajasthan.gov.in":
case "www.sarasmilkfed.rajasthan.gov.in":
case "sarasmilkfed.rajasthan.gov.in/":
case "www.sarasmilkfed.rajasthan.gov.in/":
case "sarasmilkfed.rajasthan.gov.in/home":
case "www.sarasmilkfed.rajasthan.gov.in/home":
_wesiteCode = '151';
break;
case "animalhusbandry.rajasthan.gov.in":
case "www.animalhusbandry.rajasthan.gov.in":
case "animalhusbandry.rajasthan.gov.in/":
case "www.animalhusbandry.rajasthan.gov.in/":
case "animalhusbandry.rajasthan.gov.in/home":
case "www.animalhusbandry.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('animalhusbandry') || '10';
break;
//#endregion
//#region Agriculture Department
case "agriculture.rajasthan.gov.in":
case "www.agriculture.rajasthan.gov.in":
case "agriculture.rajasthan.gov.in/":
case "www.agriculture.rajasthan.gov.in/":
case "agriculture.rajasthan.gov.in/home":
case "www.agriculture.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('agriculture') || '5';
break;
//#endregion
//#region Medical Education Department
case "medicaleducation.rajasthan.gov.in":
case "www.medicaleducation.rajasthan.gov.in":
case "medicaleducation.rajasthan.gov.in/":
case "www.medicaleducation.rajasthan.gov.in/":
case "medicaleducation.rajasthan.gov.in/home":
case "www.medicaleducation.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('medicaleducation') || '102';
break;
//#endregion
//#region DOT - Government Industrial Training Institute (ITI)
case "dot.rajasthan.gov.in":
case "www.dot.rajasthan.gov.in":
case "dot.rajasthan.gov.in/":
case "www.dot.rajasthan.gov.in/":
case "dot.rajasthan.gov.in/home":
case "www.dot.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('dot') || '402';
break;
//#endregion
//#region Education
// Live: Education Portal (IP) -- remove when live with education.rajasthan.gov.in
// Live: Education Portal
case "education.rajasthan.gov.in":
case "www.education.rajasthan.gov.in":
case "education.rajasthan.gov.in/":
case "www.education.rajasthan.gov.in/":
case "education.rajasthan.gov.in/home":
case "www.education.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('education') || '951';
break;
//#endregion
//#region LSG
case "lsg.rajasthan.gov.in":
case "www.lsg.rajasthan.gov.in":
case "lsg.rajasthan.gov.in/":
case "www.lsg.rajasthan.gov.in/":
case "lsg.rajasthan.gov.in/home":
case "www.lsg.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('lsg') || '1171';
if (_wesiteCode == '215') {
location.href = "https://lsg.urban.rajasthan.gov.in";
}
if (_wesiteCode == '245') {
location.href = "https://bhda.rajasthan.gov.in/";
}
break;
//#endregion
//#region bhda
case "bhda.rajasthan.gov.in":
case "www.bhda.rajasthan.gov.in":
case "bhda.rajasthan.gov.in/":
case "www.bhda.rajasthan.gov.in/":
case "bhda.rajasthan.gov.in/home":
case "www.bhda.rajasthan.gov.in/home":
_wesiteCode = '245';
break;
//#endregion
//#region Industries Department
case "rfc.rajasthan.gov.in":
case "www.rfc.rajasthan.gov.in":
case "rfc.rajasthan.gov.in/":
case "www.rfc.rajasthan.gov.in/":
case "rfc.rajasthan.gov.in/home":
case "www.rfc.rajasthan.gov.in/home":
_wesiteCode = '124';
break;
case "industries.rajasthan.gov.in":
case "www.industries.rajasthan.gov.in":
case "industries.rajasthan.gov.in/":
case "www.industries.rajasthan.gov.in/":
case "industries.rajasthan.gov.in/home":
case "www.industries.rajasthan.gov.in/home":
{
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('industries') || '946';
if (_wesiteCode == '125') {
location.href = "https://riico.rajasthan.gov.in";
}
break;
}
//#endregion
//#region Sports Department
case "sports.rajasthan.gov.in":
case "www.sports.rajasthan.gov.in":
case "sports.rajasthan.gov.in/":
case "www.sports.rajasthan.gov.in/":
case "sports.rajasthan.gov.in/home":
case "www.sports.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('sports') || '145';
break;
//#endregion
//#region Energy Department
case "energy.rajasthan.gov.in":
case "www.energy.rajasthan.gov.in":
case "energy.rajasthan.gov.in/":
case "www.energy.rajasthan.gov.in/":
case "energy.rajasthan.gov.in/home":
case "www.energy.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('energy') || '62';
break;
//#endregion
//#region Health Department
case "health.rajasthan.gov.in":
case "www.health.rajasthan.gov.in":
case "health.rajasthan.gov.in/":
case "www.health.rajasthan.gov.in/":
case "health.rajasthan.gov.in/home":
case "www.health.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('health') || '62';
break;
//#endregion
case "ard.rajasthan.gov.in":
case "www.ard.rajasthan.gov.in":
case "ard.rajasthan.gov.in/":
case "www.ard.rajasthan.gov.in/":
case "ard.rajasthan.gov.in/home":
case "www.ard.rajasthan.gov.in/home":
_wesiteCode = '4';
break;
case "museums.rajasthan.gov.in":
case "www.museums.rajasthan.gov.in":
case "museums.rajasthan.gov.in/":
case "www.museums.rajasthan.gov.in/":
case "museums.rajasthan.gov.in/home":
case "www.museums.rajasthan.gov.in/home":
_wesiteCode = '12';
break;
case "ayurved.rajasthan.gov.in":
case "www.ayurved.rajasthan.gov.in":
case "ayurved.rajasthan.gov.in/":
case "www.ayurved.rajasthan.gov.in/":
case "ayurved.rajasthan.gov.in/home":
case "www.ayurved.rajasthan.gov.in/home":
case "ayurveda.rajasthan.gov.in":
case "www.ayurveda.rajasthan.gov.in":
case "ayurveda.rajasthan.gov.in/":
case "www.ayurveda.rajasthan.gov.in/":
case "ayurveda.rajasthan.gov.in/home":
case "www.ayurveda.rajasthan.gov.in/home":
_wesiteCode = '15';
break;
case "joda.rajasthan.gov.in":
case "www.joda.rajasthan.gov.in":
case "joda.rajasthan.gov.in/":
case "www.joda.rajasthan.gov.in/":
case "joda.rajasthan.gov.in/home":
case "www.joda.rajasthan.gov.in/home":
_wesiteCode = '93';
break;
case "rajpanchayat.rajasthan.gov.in":
case "www.rajpanchayat.rajasthan.gov.in":
case "rajpanchayat.rajasthan.gov.in/":
case "www.rajpanchayat.rajasthan.gov.in/":
case "rajpanchayat.rajasthan.gov.in/home":
case "www.rajpanchayat.rajasthan.gov.in/home":
_wesiteCode = '107';
break;
case "phedwater.rajasthan.gov.in":
case "www.phedwater.rajasthan.gov.in":
case "phedwater.rajasthan.gov.in/":
case "www.phedwater.rajasthan.gov.in/":
case "phedwater.rajasthan.gov.in/home":
case "www.phedwater.rajasthan.gov.in/home":
case "phed.rajasthan.gov.in":
case "www.phed.rajasthan.gov.in":
case "phed.rajasthan.gov.in/":
case "www.phed.rajasthan.gov.in/":
case "phed.rajasthan.gov.in/home":
case "www.phed.rajasthan.gov.in/home":
_wesiteCode = '110';
break;
case "rajanujanigam.rajasthan.gov.in":
case "www.rajanujanigam.rajasthan.gov.in":
case "rajanujanigam.rajasthan.gov.in/":
case "www.rajanujanigam.rajasthan.gov.in/":
case "rajanujanigam.rajasthan.gov.in/home":
case "www.rajanujanigam.rajasthan.gov.in/home":
_wesiteCode = '118';
break;
case "igrs.rajasthan.gov.in":
case "www.igrs.rajasthan.gov.in":
case "igrs.rajasthan.gov.in/":
case "www.igrs.rajasthan.gov.in/":
case "igrs.rajasthan.gov.in/home":
case "www.igrs.rajasthan.gov.in/home":
_wesiteCode = '121';
break;
case "riico.rajasthan.gov.in":
case "www.riico.rajasthan.gov.in":
case "riico.rajasthan.gov.in/":
case "www.riico.rajasthan.gov.in/":
case "riico.rajasthan.gov.in/home":
case "www.riico.rajasthan.gov.in/home":
_wesiteCode = '125';
break;
case "rdprd.rajasthan.gov.in":
case "www.rdprd.rajasthan.gov.in":
case "rdprd.rajasthan.gov.in/":
case "www.rdprd.rajasthan.gov.in/":
case "rdprd.rajasthan.gov.in/home":
case "www.rdprd.rajasthan.gov.in/home":
_wesiteCode = '128';
break;
case "tad.rajasthan.gov.in":
case "www.tad.rajasthan.gov.in":
case "tad.rajasthan.gov.in/":
case "www.tad.rajasthan.gov.in/":
case "tad.rajasthan.gov.in/home":
case "www.tad.rajasthan.gov.in/home":
_wesiteCode = '136';
break;
case "printingandstationery.rajasthan.gov.in":
case "www.printingandstationery.rajasthan.gov.in":
case "printingandstationery.rajasthan.gov.in/":
case "www.printingandstationery.rajasthan.gov.in/":
case "printingandstationery.rajasthan.gov.in/home":
case "www.printingandstationery.rajasthan.gov.in/home":
_wesiteCode = '148';
break;
case "dsap.rajasthan.gov.in":
case "www.dsap.rajasthan.gov.in":
case "dsap.rajasthan.gov.in/":
case "www.dsap.rajasthan.gov.in/":
case "dsap.rajasthan.gov.in/home":
case "www.dsap.rajasthan.gov.in/home":
_wesiteCode = '167';
break;
case "jda.rajasthan.gov.in":
case "www.jda.rajasthan.gov.in":
case "jda.rajasthan.gov.in/":
case "www.jda.rajasthan.gov.in/":
case "jda.rajasthan.gov.in/home":
case "www.jda.rajasthan.gov.in/home":
_wesiteCode = '182';
break;
case "rpg.rajasthan.gov.in":
case "www.rpg.rajasthan.gov.in":
case "rpg.rajasthan.gov.in/":
case "www.rpg.rajasthan.gov.in/":
case "rpg.rajasthan.gov.in/home":
case "www.rpg.rajasthan.gov.in/home":
_wesiteCode = '186';
break;
case "ada.rajasthan.gov.in":
case "www.ada.rajasthan.gov.in":
case "ada.rajasthan.gov.in/":
case "www.ada.rajasthan.gov.in/":
case "ada.rajasthan.gov.in/home":
case "www.ada.rajasthan.gov.in/home":
_wesiteCode = '208';
break;
case "dcr.rajasthan.gov.in":
case "www.dcr.rajasthan.gov.in":
case "dcr.rajasthan.gov.in/":
case "www.dcr.rajasthan.gov.in/":
case "dcr.rajasthan.gov.in/home":
case "www.dcr.rajasthan.gov.in/home":
_wesiteCode = '210';
break;
case "rudsico.rajasthan.gov.in":
case "www.rudsico.rajasthan.gov.in":
case "rudsico.rajasthan.gov.in/":
case "www.rudsico.rajasthan.gov.in/":
case "rudsico.rajasthan.gov.in/home":
case "www.rudsico.rajasthan.gov.in/home":
_wesiteCode = '233';
break;
case "nhm.rajasthan.gov.in":
case "www.nhm.rajasthan.gov.in":
case "nhm.rajasthan.gov.in/":
case "www.nhm.rajasthan.gov.in/":
case "nhm.rajasthan.gov.in/home":
case "www.nhm.rajasthan.gov.in/home":
_wesiteCode = '236';
break;
case "tri.rajasthan.gov.in":
case "www.tri.rajasthan.gov.in":
case "tri.rajasthan.gov.in/":
case "www.tri.rajasthan.gov.in/":
case "tri.rajasthan.gov.in/home":
case "www.tri.rajasthan.gov.in/home":
_wesiteCode = '238';
break;
case "kda.rajasthan.gov.in":
case "www.kda.rajasthan.gov.in":
case "kda.rajasthan.gov.in/":
case "www.kda.rajasthan.gov.in/":
case "kda.rajasthan.gov.in/home":
case "www.kda.rajasthan.gov.in/home":
_wesiteCode = '280';
break;
case "rscpcr.rajasthan.gov.in":
case "www.rscpcr.rajasthan.gov.in":
case "rscpcr.rajasthan.gov.in/":
case "www.rscpcr.rajasthan.gov.in/":
case "rscpcr.rajasthan.gov.in/home":
case "www.rscpcr.rajasthan.gov.in/home":
_wesiteCode = '290';
break;
// also run with url https://health.rajasthan.gov.in/hcv/ (health-sector/department)
case "homeopathychikitsa.rajasthan.gov.in":
case "www.homeopathychikitsa.rajasthan.gov.in":
case "homeopathychikitsa.rajasthan.gov.in/":
case "www.homeopathychikitsa.rajasthan.gov.in/":
case "homeopathychikitsa.rajasthan.gov.in/home":
case "www.homeopathychikitsa.rajasthan.gov.in/home":
_wesiteCode = '304';
break;
case "rsos.rajasthan.gov.in":
case "www.rsos.rajasthan.gov.in":
case "rsos.rajasthan.gov.in/":
case "www.rsos.rajasthan.gov.in/":
case "rsos.rajasthan.gov.in/home":
case "www.rsos.rajasthan.gov.in/home":
_wesiteCode = '317';
break;
case "risl.rajasthan.gov.in":
case "www.risl.rajasthan.gov.in":
case "risl.rajasthan.gov.in/":
case "www.risl.rajasthan.gov.in/":
case "risl.rajasthan.gov.in/home":
case "www.risl.rajasthan.gov.in/home":
_wesiteCode = '352';
break;
case "uda.rajasthan.gov.in":
case "www.uda.rajasthan.gov.in":
case "uda.rajasthan.gov.in/":
case "www.uda.rajasthan.gov.in/":
case "uda.rajasthan.gov.in/home":
case "www.uda.rajasthan.gov.in/home":
_wesiteCode = '372';
break;
case "rhb.rajasthan.gov.in":
case "www.rhb.rajasthan.gov.in":
case "rhb.rajasthan.gov.in/":
case "www.rhb.rajasthan.gov.in/":
case "rhb.rajasthan.gov.in/home":
case "www.rhb.rajasthan.gov.in/home":
_wesiteCode = '383';
break;
case "peaceandnonviolence.rajasthan.gov.in":
case "www.peaceandnonviolence.rajasthan.gov.in":
case "peaceandnonviolence.rajasthan.gov.in/":
case "www.peaceandnonviolence.rajasthan.gov.in/":
case "peaceandnonviolence.rajasthan.gov.in/home":
case "www.peaceandnonviolence.rajasthan.gov.in/home":
_wesiteCode = '495';
break;
case "csoffice.rajasthan.gov.in":
case "www.csoffice.rajasthan.gov.in":
case "csoffice.rajasthan.gov.in/":
case "www.csoffice.rajasthan.gov.in/":
case "csoffice.rajasthan.gov.in/home":
case "www.csoffice.rajasthan.gov.in/home":
_wesiteCode = '496';
break;
case "zpajmer.rajasthan.gov.in":
case "www.zpajmer.rajasthan.gov.in":
case "zpajmer.rajasthan.gov.in/":
case "www.zpajmer.rajasthan.gov.in/":
case "zpajmer.rajasthan.gov.in/home":
case "www.zpajmer.rajasthan.gov.in/home":
_wesiteCode = '880';
break;
case "jaipurzp.rajasthan.gov.in":
case "www.jaipurzp.rajasthan.gov.in":
case "jaipurzp.rajasthan.gov.in/":
case "www.jaipurzp.rajasthan.gov.in/":
case "jaipurzp.rajasthan.gov.in/home":
case "www.jaipurzp.rajasthan.gov.in/home":
_wesiteCode = '894';
break;
case "urban.rajasthan.gov.in":
case "www.urban.rajasthan.gov.in":
case "urban.rajasthan.gov.in/":
case "www.urban.rajasthan.gov.in/":
case "urban.rajasthan.gov.in/home":
case "www.urban.rajasthan.gov.in/home":
{
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('urban') || '948';
if (_wesiteCode == '173') {
location.href = " https://udh.rajasthan.gov.in";
}
break;
}
case "livelihoods.rajasthan.gov.in":
case "www.livelihoods.rajasthan.gov.in":
case "livelihoods.rajasthan.gov.in/":
case "www.livelihoods.rajasthan.gov.in/":
case "livelihoods.rajasthan.gov.in/home":
case "www.livelihoods.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('livelihoods') || '950';
break;
case "water.rajasthan.gov.in":
case "www.water.rajasthan.gov.in":
case "water.rajasthan.gov.in/":
case "www.water.rajasthan.gov.in/":
case "water.rajasthan.gov.in/home":
case "www.water.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('water') || '954';
break;
case "artandculture.rajasthan.gov.in":
case "www.artandculture.rajasthan.gov.in":
case "artandculture.rajasthan.gov.in/":
case "www.artandculture.rajasthan.gov.in/":
case "artandculture.rajasthan.gov.in/home":
case "www.artandculture.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('artandculture') || '956';
break;
case "pwd.rajasthan.gov.in":
case "www.pwd.rajasthan.gov.in":
case "pwd.rajasthan.gov.in/":
case "www.pwd.rajasthan.gov.in/":
case "pwd.rajasthan.gov.in/home":
case "www.pwd.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('pwd') || '966';
break;
case "psks.rajasthan.gov.in":
case "www.psks.rajasthan.gov.in":
case "psks.rajasthan.gov.in/":
case "www.psks.rajasthan.gov.in/":
case "psks.rajasthan.gov.in/home":
case "www.psks.rajasthan.gov.in/home":
_wesiteCode = '989';
break;
case "webmyway.rajasthan.gov.in":
case "www.webmyway.rajasthan.gov.in":
case "webmyway.rajasthan.gov.in/":
case "www.webmyway.rajasthan.gov.in/":
case "webmyway.rajasthan.gov.in/home":
case "www.webmyway.rajasthan.gov.in/home":
_wesiteCode = '994';
break;
case "wcd.rajasthan.gov.in":
case "www.wcd.rajasthan.gov.in":
case "wcd.rajasthan.gov.in/":
case "www.wcd.rajasthan.gov.in/":
case "wcd.rajasthan.gov.in/home":
case "www.wcd.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('wcd') || '1022';
break;
case "exciseonline.rajasthan.gov.in":
case "www.exciseonline.rajasthan.gov.in":
case "exciseonline.rajasthan.gov.in/":
case "www.exciseonline.rajasthan.gov.in/":
case "exciseonline.rajasthan.gov.in/home":
case "www.exciseonline.rajasthan.gov.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('exciseonline') || '1023';
break;
case "budget.rajasthan.gov.in":
case "www.budget.rajasthan.gov.in":
case "budget.rajasthan.gov.in/":
case "www.budget.rajasthan.gov.in/":
case "budget.rajasthan.gov.in/home":
case "www.budget.rajasthan.gov.in/home":
_wesiteCode = '1149';
break;
case "rsadapp.rajasthan.gov.in":
case "www.rsadapp.rajasthan.gov.in":
case "rsadapp.rajasthan.gov.in/":
case "www.rsadapp.rajasthan.gov.in/":
case "rsadapp.rajasthan.gov.in/home":
case "www.rsadapp.rajasthan.gov.in/home":
_wesiteCode = '1156';
break;
case "yuvaphalodi.rajasthan.gov.in":
case "www.yuvaphalodi.rajasthan.gov.in":
case "yuvaphalodi.rajasthan.gov.in/":
case "www.yuvaphalodi.rajasthan.gov.in/":
case "yuvaphalodi.rajasthan.gov.in/home":
case "www.yuvaphalodi.rajasthan.gov.in/home":
_wesiteCode = '1267';
break;
case "rsha.rajasthan.gov.in":
case "www.rsha.rajasthan.gov.in":
case "rsha.rajasthan.gov.in/":
case "www.rsha.rajasthan.gov.in/":
case "rsha.rajasthan.gov.in/home":
case "www.rsha.rajasthan.gov.in/home":
_wesiteCode = '1290';
break;
case "ayurvedcollegekekri.rajasthan.gov.in":
case "www.ayurvedcollegekekri.rajasthan.gov.in":
case "ayurvedcollegekekri.rajasthan.gov.in/":
case "www.ayurvedcollegekekri.rajasthan.gov.in/":
case "ayurvedcollegekekri.rajasthan.gov.in/home":
case "www.ayurvedcollegekekri.rajasthan.gov.in/home":
_wesiteCode = '1860';
break;
case "ayurvedcollegesikar.rajasthan.gov.in":
case "www.ayurvedcollegesikar.rajasthan.gov.in":
case "ayurvedcollegesikar.rajasthan.gov.in/":
case "www.ayurvedcollegesikar.rajasthan.gov.in/":
case "ayurvedcollegesikar.rajasthan.gov.in/home":
case "www.ayurvedcollegesikar.rajasthan.gov.in/home":
_wesiteCode = '1861';
break;
case "ayurvedcollegebikaner.rajasthan.gov.in":
case "www.ayurvedcollegebikaner.rajasthan.gov.in":
case "ayurvedcollegebikaner.rajasthan.gov.in/":
case "www.ayurvedcollegebikaner.rajasthan.gov.in/":
case "ayurvedcollegebikaner.rajasthan.gov.in/home":
case "www.ayurvedcollegebikaner.rajasthan.gov.in/home":
_wesiteCode = '1862';
break;
case "bda.rajasthan.gov.in":
case "www.bda.rajasthan.gov.in":
case "bda.rajasthan.gov.in/":
case "www.bda.rajasthan.gov.in/":
case "bda.rajasthan.gov.in/home":
case "www.bda.rajasthan.gov.in/home":
_wesiteCode = '367';
break;
case "rajseeds.rajasthan.gov.in":
case "www.rajseeds.rajasthan.gov.in":
case "rajseeds.rajasthan.gov.in/":
case "www.rajseeds.rajasthan.gov.in/":
case "rajseeds.rajasthan.gov.in/home":
case "www.rajseeds.rajasthan.gov.in/home":
_wesiteCode = '149';
break;
case "techedu.rajasthan.gov.in":
case "www.techedu.rajasthan.gov.in":
case "techedu.rajasthan.gov.in/":
case "www.techedu.rajasthan.gov.in/":
case "techedu.rajasthan.gov.in/home":
case "www.techedu.rajasthan.gov.in/home":
_wesiteCode = '229';
break;
case "ruvasjaipur.rajasthan.gov.in":
case "www.ruvasjaipur.rajasthan.gov.in":
case "ruvasjaipur.rajasthan.gov.in/":
case "www.ruvasjaipur.rajasthan.gov.in/":
case "ruvasjaipur.rajasthan.gov.in/home":
case "www.ruvasjaipur.rajasthan.gov.in/home":
_wesiteCode = '1882';
break;
case "viksit.rajasthan.gov.in":
case "www.viksit.rajasthan.gov.in.in":
case "viksit.rajasthan.gov.in/":
case "www.viksit.rajasthan.gov.in/":
case "viksit.rajasthan.gov.in/home":
case "www.viksit.rajasthan.gov.in/home":
_wesiteCode = '1877';
break;
//#region Electropathy
case "electropathy.rajasthan.gov.in":
case "www.electropathy.rajasthan.gov.in":
case "electropathy.rajasthan.gov.in/":
case "www.electropathy.rajasthan.gov.in/":
case "electropathy.rajasthan.gov.in/home":
case "www.electropathy.rajasthan.gov.in/home":
_wesiteCode = '1884';
break;
//#endregion Electropathy
// start - testing server
// live private server LB
// ds demo server
case "sectoralportal.projectstatus.in":
case "www.sectoralportal.projectstatus.in":
case "sectoralportal.projectstatus.in/":
case "www.sectoralportal.projectstatus.in/":
case "sectoralportal.projectstatus.in/home":
case "www.sectoralportal.projectstatus.in/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('agriculture') || '5';
break;
// end - testing server
//#region ds demo server
case "sectoralportal.24livehost.com":
case "www.sectoralportal.24livehost.com":
case "sectoralportal.24livehost.com/":
case "www.sectoralportal.24livehost.com/":
case "sectoralportal.24livehost.com/home":
case "www.sectoralportal.24livehost.com/home":
_wesiteCode = _this111._commonService.GetDeptCodeByVirtualDirectory('demooo') || '62';
break;
//#endregion
case "localhost:4200":
case "www.localhost:4200":
case "localhost:4200/":
case "www.localhost:4200/":
case "localhost:4200/home":
case "www.localhost:4200/home":
_wesiteCode = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__[
/* environment */
"a"].LocalWebsiteCode;
break;
default:
var pathName = window.location.pathname;
if (pathName != '/login' && pathName.includes('/home/dptHome/')) {
var code = (_a = pathName) === null || _a === void 0 ? void 0 : _a.split('/')[((_b = pathName) === null || _b === void 0 ? void 0 : _b.split('/').length) - 1];
code = code != "" && code.length > 0 ? code : localStorage.getItem("websiteCode");
if (code) {
_wesiteCode = code;
}
}
break;
}
if (_wesiteCode) {
if (_wesiteCode == '182') {
_this111.router.navigate(["page-not-found"]);
} // if (_wesiteCode == '391') {
// this.router.navigate(["page-not-found"]);
// }
if (_wesiteCode == '202') {
_this111.router.navigate(["page-not-found"]);
} // if (_wesiteCode == '203') {
// this.router.navigate(["page-not-found"]);
// }
// if (_wesiteCode == '204') {
// this.router.navigate(["page-not-found"]);
// }
if (_wesiteCode == '1090') {
_this111.router.navigate(["page-not-found"]);
} // if (_wesiteCode == '1091') {
// this.router.navigate(["page-not-found"]);
// }
localStorage.setItem("websiteCode", _wesiteCode);
_this111.getDepartmentDetail(Number(_wesiteCode));
_this111.GetDepartmentMenuList(Number(_wesiteCode));
}
}, 0);
}
}, {
key: "getDepartmentDetail",
value: function getDepartmentDetail(deptCode) {
var _this112 = this;
if (Number.isNaN(deptCode) == true) {
this.router.navigate(["page-not-found"]);
}
this._departmentService.GetDepartmentDetailByDptCode(deptCode).subscribe(function (response) {
var _a, _b, _c, _d, _e;
if (response.Data == null || response.IsSuccess == false) {
_this112.router.navigate(["page-not-found"]);
}
if (response.IsSuccess) {
_this112.dptModel = (_a = response) === null || _a === void 0 ? void 0 : _a.Data;
if (_this112.dptModel) {
_this112._departmentService.setDepartmentDetail(_this112.dptModel);
if (_this112.dptModel.WebsiteLogoPath) {
//set favicon icon
_this112._commonService.changeFaviconIcon(_this112.dptModel.WebsiteLogoPath);
}
var lang = localStorage.getItem("language");
if (((_b = _this112.dptModel) === null || _b === void 0 ? void 0 : _b.DefaultLanguage) || lang) {
_this112._commonService.ChangeLanguage(((_c = _this112.dptModel) === null || _c === void 0 ? void 0 : _c.DefaultLanguage) || lang);
}
if ((_d = _this112.dptModel) === null || _d === void 0 ? void 0 : _d.WebsiteImage) {
var backgroundImage = (_e = _this112.dptModel) === null || _e === void 0 ? void 0 : _e.WebsiteImage;
_this112.dptModel.WebsiteImage = backgroundImage.split(' ').join('%20');
} else {
_this112.dptModel.WebsiteImage = 'assets/images/website/bg-patter-1.jpg';
}
_this112.dptModel.IFrameURLSafe = _this112.sanitizer.bypassSecurityTrustResourceUrl(_this112.dptModel.IFrameURL);
_this112.templateClass = _this112.dptModel.TemplateClass;
var isDist = _this112.dptModel.DepartmentDistrictCode == _this112.enumdata.District;
localStorage.setItem("IsDistrict", JSON.stringify(isDist));
localStorage.setItem("DistrictName", _this112.dptModel.DepartmentTitle);
localStorage.setItem("DistrictNameHindi", _this112.dptModel.DepartmentTitleHindi);
localStorage.setItem("FolderName", _this112.dptModel.FolderName);
localStorage.setItem("MenuBarClass", _this112.dptModel.MenuBarClass);
localStorage.setItem("IsHideTenderFromHome", _this112.dptModel.IsHideTenderFromHome);
localStorage.setItem("TemplateClass", _this112.templateClass);
localStorage.setItem("metaKeywords", _this112.dptModel.MetaTagKeywords);
localStorage.setItem("metaDescription", _this112.dptModel.MetaTagDescriptions);
localStorage.setItem("IsCodeOfConduct", JSON.stringify(_this112.dptModel.IsCodeOfConduct));
_this112._commonService.SetWebTitle(_this112.translate.currentLang == 'hi' ? "मुख पृष्ठ" : "Home");
if (localStorage.getItem('metaKeywords') == "undefined" || localStorage.getItem('metaKeywords') == "null") {
_this112.keywords = 'Jankalyan Portal, Public Welfare Portal, जनकल्याण पोर्टल, Government of Rajasthan, राजस्थान सरकार, Jaipur, Rajasthan, Portal';
} else {
_this112.keywords = localStorage.getItem('metaKeywords');
}
_this112.metaTagService.updateTag({
name: 'keywords',
content: _this112.keywords
});
if (localStorage.getItem('metaDescription') == "undefined" || localStorage.getItem('metaDescription') == "null") {
_this112.description = "The government of Rajasthan is committed to public welfare as well being of its public is the priority of the Government.Jankalyan portal(a Public Welfare Portal) fulfills this ideology of Hon’ble Chief Minister of Rajasthan “जनकल्याण ही प्राथमिकता जनकल्याण ही प्रतिबद्धता”";
} else {
_this112.description = localStorage.getItem('metaDescription');
}
_this112.metaTagService.updateTag({
name: 'description',
content: _this112.description
}); // //
// if (this.dptModel.MetaTagKeywords == null || this.dptModel.MetaTagKeywords == undefined) {
// this.keywords = 'Jankalyan Portal, Public Welfare Portal, जनकल्याण पोर्टल, Government of Rajasthan, राजस्थान सरकार, Jaipur, Rajasthan, Portal';
// } else {
// this.keywords = this.dptModel.MetaTagKeywords;
// }
// this.metaTagService.updateTag({ name: 'keywords', content: this.keywords });
// // localStorage.setItem("metaKeywords", this.keywords);
// if (this.dptModel.MetaTagDescription == null || this.dptModel.MetaTagDescription == undefined) {
// this.description = 'The government of Rajasthan is committed to public welfare as well being of its public is the priority of the Government.Jankalyan portal(a Public Welfare Portal) fulfills this ideology of Hon’ble Chief Minister of Rajasthan “जनकल्याण ही प्राथमिकता जनकल्याण ही प्रतिबद्धता”';
// } else {
// this.description = this.dptModel.MetaTagDescription;
// }
// this.metaTagService.updateTag({ name: 'description', content: this.description });
//
// if (this.dptModel.MetaTagKeywords == null || this.dptModel.MetaTagKeywords == undefined) {
// this.keywords = 'Jankalyan Portal, Public Welfare Portal, जनकल्याण पोर्टल, Government of Rajasthan, राजस्थान सरकार, Jaipur, Rajasthan, Portal';
// } else {
// this.keywords = this.dptModel.MetaTagKeywords;
// }
// localStorage.setItem("metaKeywords", this.keywords);
// if (this.dptModel.MetaTagDescriptions == null || this.dptModel.MetaTagDescriptions == undefined) {
// this.description = 'The government of Rajasthan is committed to public welfare as well being of its public is the priority of the Government.Jankalyan portal(a Public Welfare Portal) fulfills this ideology of Hon’ble Chief Minister of Rajasthan “जनकल्याण ही प्राथमिकता जनकल्याण ही प्रतिबद्धता”';
// } else {
// this.description = this.dptModel.MetaTagDescriptions;
// }
// localStorage.setItem("metaDescription", this.description);
}
}
}, function (error) {});
}
}, {
key: "GetDepartmentMenuList",
value: function GetDepartmentMenuList(deptCode) {
var _this113 = this;
this._departmentService.GetDepartmentMenuList(deptCode).subscribe(function (response) {
if (response.IsSuccess) {
var menuListModel = response.Data;
if (menuListModel) {
_this113._departmentService.setDeptMenuList(menuListModel);
}
}
}, function (error) {
console.error(error);
});
}
}, {
key: "skipToMainContent",
value: function skipToMainContent() {
this.skipper.nativeElement.focus();
}
}, {
key: "skipToNavbar",
value: function skipToNavbar() {
var _a;
debugger;
(_a = document.getElementById('assets-icons')) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
behavior: 'smooth'
});
}
}, {
key: "onSkipToNavbar",
value: function onSkipToNavbar() {
//this.openNav();
this.skipperNavbar.nativeElement.focus();
}
}]);
}();
AppComponent.ɵfac = function AppComponent_Factory(t) {
return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* Router */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* Renderer2 */
"K"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ChangeDetectorRef */
"i"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_7__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_8__[
/* DptDistrictWebsiteService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Service_department_service__WEBPACK_IMPORTED_MODULE_9__[
/* DepartmentService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Helper_loader_service__WEBPACK_IMPORTED_MODULE_10__[
/* LoaderService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_Shared_Service_app_service__WEBPACK_IMPORTED_MODULE_11__[
/* AppService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ChangeDetectorRef */
"i"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_12__[
/* DomSanitizer */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_12__[
/* Meta */
"c"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdirectiveInject */
"Vb"](_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* RendererFactory2 */
"L"]));
};
AppComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵdefineComponent */
"Pb"]({
type: AppComponent,
selectors: [["app-root"]],
viewQuery: function AppComponent_Query(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵviewQuery */
"bd"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵviewQuery */
"bd"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵviewQuery */
"bd"](_c2, true);
}
if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵqueryRefresh */
"Jc"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵloadQuery */
"jc"]()) && (ctx.skipper = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵqueryRefresh */
"Jc"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵloadQuery */
"jc"]()) && (ctx.skipperNavbar = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵqueryRefresh */
"Jc"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵloadQuery */
"jc"]()) && (ctx.pageBody = _t.first);
}
},
decls: 8,
vars: 12,
consts: [["class", "ngx-progressbar-loader", 3, "progress", "color-degraded", 4, "ngIf"], [3, "ngClass"], ["pageBody", ""], [4, "ngIf"], [1, "ngx-progressbar-loader", 3, "progress", "color-degraded"], ["tabindex", "-1"], ["skipperMainContent", ""], ["class", "print-d-none", 3, "DepartmentData", "skipToMainContent", "skipToNavbar", "SetTheme", "fontSize", 4, "ngIf"], ["skipperMenuContent", ""], [3, "DepartmentData", 4, "ngIf"], [1, "print-d-none", 3, "DepartmentData", "skipToMainContent", "skipToNavbar", "SetTheme", "fontSize"], [3, "DepartmentData"]],
template: function AppComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](0, AppComponent_progress_bar_0_Template, 1, 3, "progress-bar", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementStart */
"ac"](4, "div", null, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](6, AppComponent_ng_container_6_Template, 4, 0, "ng-container", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵtemplate */
"Tc"](7, AppComponent_ng_container_7_Template, 11, 7, "ng-container", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.isVisibleProgressBar);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵclassMap */
"Kb"](ctx.templateClass);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵclassMap */
"Kb"](ctx.menuBarClass);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵpureFunction1 */
"Ec"](10, _c4, ctx.deptCodeEnum.WebMyWay === (ctx.dptModel == null ? null : ctx.dptModel.DepartmentCode)));
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.islogin);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_4__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.islogin);
}
},
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_13__[
/* NgIf */
"n"], _angular_common__WEBPACK_IMPORTED_MODULE_13__[
/* NgClass */
"l"], angular_progress_bar__WEBPACK_IMPORTED_MODULE_14__[
/* ProgressBarComponent */
"a"], _angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* RouterOutlet */
"f"], _loader_loader_component__WEBPACK_IMPORTED_MODULE_15__[
/* LoaderComponent */
"a"], _header_header_component__WEBPACK_IMPORTED_MODULE_16__[
/* HeaderComponent */
"a"], _footer_footer_component__WEBPACK_IMPORTED_MODULE_17__[
/* FooterComponent */
"a"]],
pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_13__[
/* AsyncPipe */
"b"]],
styles: [".lightbox[_ngcontent-%COMP%] .lb-image[_ngcontent-%COMP%]{max-width:-webkit-fill-available!important}"]
});
return AppComponent;
}();
/***/
},
/***/
"T5CN":
/***/
function T5CN(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "f", function () {
return OrderTypeValidationForDocNoEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return OrderTypeEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return OrderSubTypeEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AchievementCategoryCodeEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return DownloaddocumentCodeEnum;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return OfficeWiseOrderCountScreenRedirectToEnum;
});
var OrderTypeValidationForDocNoEnum =
/*@__PURE__*/
function (OrderTypeValidationForDocNoEnum) {
OrderTypeValidationForDocNoEnum[OrderTypeValidationForDocNoEnum["No"] = 0] = "No";
OrderTypeValidationForDocNoEnum[OrderTypeValidationForDocNoEnum["Yes"] = 1] = "Yes";
OrderTypeValidationForDocNoEnum[OrderTypeValidationForDocNoEnum["MayBe"] = 2] = "MayBe";
return OrderTypeValidationForDocNoEnum;
}({});
var OrderTypeEnum =
/*@__PURE__*/
function (OrderTypeEnum) {
OrderTypeEnum[OrderTypeEnum["Order"] = 1] = "Order";
OrderTypeEnum[OrderTypeEnum["Circular"] = 2] = "Circular";
OrderTypeEnum[OrderTypeEnum["Notification"] = 3] = "Notification";
OrderTypeEnum[OrderTypeEnum["PolicyGuidelines"] = 4] = "PolicyGuidelines";
OrderTypeEnum[OrderTypeEnum["ActRules"] = 5] = "ActRules";
OrderTypeEnum[OrderTypeEnum["CitizenCharter"] = 6] = "CitizenCharter";
OrderTypeEnum[OrderTypeEnum["COVID19"] = 8] = "COVID19";
OrderTypeEnum[OrderTypeEnum["Publication"] = 10] = "Publication";
OrderTypeEnum[OrderTypeEnum["Policy"] = 14] = "Policy";
OrderTypeEnum[OrderTypeEnum["InMediaNewsofDept"] = 26] = "InMediaNewsofDept";
return OrderTypeEnum;
}({});
var OrderSubTypeEnum =
/*@__PURE__*/
function (OrderSubTypeEnum) {
OrderSubTypeEnum[OrderSubTypeEnum["Poster"] = 1771] = "Poster";
OrderSubTypeEnum[OrderSubTypeEnum["Advertisement"] = 2169] = "Advertisement";
OrderSubTypeEnum[OrderSubTypeEnum["InSocialMedia"] = 2702] = "InSocialMedia";
OrderSubTypeEnum[OrderSubTypeEnum["InNewsPaper"] = 2701] = "InNewsPaper";
return OrderSubTypeEnum;
}({});
var AchievementCategoryCodeEnum =
/*@__PURE__*/
function (AchievementCategoryCodeEnum) {
AchievementCategoryCodeEnum[AchievementCategoryCodeEnum["CabinetDecisions"] = 14] = "CabinetDecisions";
return AchievementCategoryCodeEnum;
}({});
var DownloaddocumentCodeEnum =
/*@__PURE__*/
function (DownloaddocumentCodeEnum) {
DownloaddocumentCodeEnum[DownloaddocumentCodeEnum["RecruitmentRelated"] = 22] = "RecruitmentRelated";
DownloaddocumentCodeEnum[DownloaddocumentCodeEnum["ExaminationRollNumber"] = 2726] = "ExaminationRollNumber";
return DownloaddocumentCodeEnum;
}({});
var OfficeWiseOrderCountScreenRedirectToEnum =
/*@__PURE__*/
function (OfficeWiseOrderCountScreenRedirectToEnum) {
OfficeWiseOrderCountScreenRedirectToEnum["List"] = "list";
OfficeWiseOrderCountScreenRedirectToEnum["Category"] = "category";
OfficeWiseOrderCountScreenRedirectToEnum["SubCategory"] = "subcategory";
OfficeWiseOrderCountScreenRedirectToEnum["Office"] = "office";
OfficeWiseOrderCountScreenRedirectToEnum["Section"] = "section";
return OfficeWiseOrderCountScreenRedirectToEnum;
}({});
/***/
},
/***/
"UWk7":
/***/
function UWk7(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export Zone */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return AchievementViewModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return AchievementCatgoryModel;
});
/* unused harmony export AchievementSubCategoryModel */
/* unused harmony export SubCategoryGroupAchievementListViewModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AchiementFilterModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return AchievementAllSearchModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return AchievementAttachmentModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "j", function () {
return TouristPlaceDetailModel;
});
/* unused harmony export PublicUtilityCountModel */
/* unused harmony export CategoryWisePubicUtilityModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "h", function () {
return AdaUserFeedback;
});
/* unused harmony export AdaFeedbackService */
/* unused harmony export FeedbackSearchModel */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "i", function () {
return OTPAdaFeedback;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "g", function () {
return AdaOtpVerifyRequestModel;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "f", function () {
return AdaOTPResponseModel;
});
/* unused harmony export AdaFeedbackServiceViewModel */
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
var Zone =
/*@__PURE__*/
function (Zone) {
Zone[Zone["Zone1"] = 1] = "Zone1";
Zone[Zone["Zone2"] = 2] = "Zone2";
Zone[Zone["Zone3"] = 3] = "Zone3";
Zone[Zone["Zone4"] = 4] = "Zone4";
Zone[Zone["Zone5"] = 5] = "Zone5";
return Zone;
}({});
var AchievementViewModel =
/*#__PURE__*/
_createClass2(function AchievementViewModel() {
_classCallCheck(this, AchievementViewModel);
});
var AchievementCatgoryModel =
/*#__PURE__*/
_createClass2(function AchievementCatgoryModel() {
_classCallCheck(this, AchievementCatgoryModel);
});
var AchievementSubCategoryModel =
/*#__PURE__*/
_createClass2(function AchievementSubCategoryModel() {
_classCallCheck(this, AchievementSubCategoryModel);
});
var SubCategoryGroupAchievementListViewModel =
/*#__PURE__*/
_createClass2(function SubCategoryGroupAchievementListViewModel() {
_classCallCheck(this, SubCategoryGroupAchievementListViewModel);
});
var AchiementFilterModel =
/*#__PURE__*/
_createClass2(function AchiementFilterModel() {
_classCallCheck(this, AchiementFilterModel);
this.AdmDepartmentCode = 0;
this.DepartmentCode = 0;
this.SubCategoryCode = 0;
});
var AchievementAllSearchModel =
/*#__PURE__*/
_createClass2(function AchievementAllSearchModel() {
_classCallCheck(this, AchievementAllSearchModel);
this.AdmDepartmentCode = 0;
this.DepartmentCode = 0;
this.CategoryCode = 0;
this.SubCategoryCode = 0;
this.ToDate = "";
this.FromDate = "";
this.SearchKeyword = "";
this.IsURLRequired = false;
this.IsImageRequired = false;
this.IsPDFRequired = false;
this.IsActive = true;
this.IsVisibleInHome = null;
this.IsVisibleInFront = null;
this.IndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.IsBase64File = false;
this.IsUserManual = -1;
this.IsOrders = -1;
this.IsSchemeImplementationStatus = -1;
this.IsSupportingDocument = -1;
this.IsApplicationForm = -1;
this.IsLatestUpdate = -1;
});
var AchievementAttachmentModel =
/*#__PURE__*/
_createClass2(function AchievementAttachmentModel() {
_classCallCheck(this, AchievementAttachmentModel);
this.ImageFiles = [];
});
var TouristPlaceDetailModel =
/*#__PURE__*/
_createClass2(function TouristPlaceDetailModel() {
_classCallCheck(this, TouristPlaceDetailModel);
this.ImageFiles = [];
});
var PublicUtilityCountModel =
/*#__PURE__*/
_createClass2(function PublicUtilityCountModel() {
_classCallCheck(this, PublicUtilityCountModel);
});
var CategoryWisePubicUtilityModel =
/*#__PURE__*/
_createClass2(function CategoryWisePubicUtilityModel() {
_classCallCheck(this, CategoryWisePubicUtilityModel);
});
var AdaUserFeedback =
/*#__PURE__*/
_createClass2(function AdaUserFeedback() {
_classCallCheck(this, AdaUserFeedback);
this.MyFilePath = [];
this.ImagePath = [];
this.IndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
});
var AdaFeedbackService =
/*#__PURE__*/
_createClass2(function AdaFeedbackService() {
_classCallCheck(this, AdaFeedbackService);
});
var FeedbackSearchModel =
/*#__PURE__*/
_createClass2(function FeedbackSearchModel() {
_classCallCheck(this, FeedbackSearchModel);
});
var OTPAdaFeedback =
/*#__PURE__*/
_createClass2(function OTPAdaFeedback() {
_classCallCheck(this, OTPAdaFeedback);
});
var AdaOtpVerifyRequestModel =
/*#__PURE__*/
_createClass2(function AdaOtpVerifyRequestModel() {
_classCallCheck(this, AdaOtpVerifyRequestModel);
});
var AdaOTPResponseModel =
/*#__PURE__*/
_createClass2(function AdaOTPResponseModel() {
_classCallCheck(this, AdaOTPResponseModel);
});
var AdaFeedbackServiceViewModel =
/*#__PURE__*/
_createClass2(function AdaFeedbackServiceViewModel() {
_classCallCheck(this, AdaFeedbackServiceViewModel);
});
/***/
},
/***/
"V6aM":
/***/
function V6aM(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return SubjectDescriptionBookmarkListComponent;
});
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("j672");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("fXoL");
/* harmony import */
var src_app_Shared_Service_achievement_award_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("DiM6");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("qVlC");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("LYBR");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("sYmb");
/* harmony import */
var _loader_loader_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("kQyY");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("ofXK");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("3Pt+");
/* harmony import */
var ngx_pagination__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("oOf3");
/* harmony import */
var src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("GmSP");
/* harmony import */
var src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("/9+q");
function SubjectDescriptionBookmarkListComponent_span_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4272 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r4272.translate.currentLang != "hi" ? ctx_r4272.pageTitle == null ? null : ctx_r4272.pageTitle.NameEnglish : ctx_r4272.pageTitle == null ? null : ctx_r4272.pageTitle.NameHindi);
}
}
function SubjectDescriptionBookmarkListComponent_span_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function SubjectDescriptionBookmarkListComponent_span_17_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4274 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](ctx_r4274.translate.currentLang != "hi" ? ctx_r4274.pageTitle == null ? null : ctx_r4274.pageTitle.NameEnglish : ctx_r4274.pageTitle == null ? null : ctx_r4274.pageTitle.NameHindi);
}
}
function SubjectDescriptionBookmarkListComponent_span_18_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](" ");
}
}
function SubjectDescriptionBookmarkListComponent_ng_container_19_div_4_Template(rf, ctx) {
if (rf & 1) {
var _r4285 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("click", function SubjectDescriptionBookmarkListComponent_ng_container_19_div_4_Template_a_click_1_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r4285);
var item_r4282 = ctx.$implicit;
var ctx_r4284 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r4284._commonService.setFocus("record_" + item_r4282.Id);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4282 = ctx.$implicit;
var i_r4283 = ctx.index;
var ctx_r4279 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"](" ", (ctx_r4279.descriptionIndexModel.Page - 1) * ctx_r4279.descriptionIndexModel.PageSize + (i_r4283 + 1), ". ", ctx_r4279.translate.currentLang == "en" ? item_r4282.AchievementHindi : item_r4282.SubjectHindi ? item_r4282.SubjectHindi : item_r4282.AchievementHindi, " ");
}
}
function SubjectDescriptionBookmarkListComponent_ng_container_19_div_6_div_7_Template(rf, ctx) {
if (rf & 1) {
var _r4291 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "img", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function SubjectDescriptionBookmarkListComponent_ng_container_19_div_6_div_7_Template_img_error_3_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r4291);
var ctx_r4290 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](3);
return ctx_r4290._commonService.onImageError($event, "assets/images/record-not-found.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4286 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4288 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r4286 == null ? null : item_r4286.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("src", item_r4286 == null ? null : item_r4286.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx_r4288.translate.currentLang == "en" ? item_r4286.AchievementHindi : item_r4286.SubjectHindi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx_r4288.translate.currentLang == "en" ? item_r4286.AchievementHindi : item_r4286.SubjectHindi);
}
}
function SubjectDescriptionBookmarkListComponent_ng_container_19_div_6_div_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](3, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4286 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r4286 == null ? null : item_r4286.PdfFIleName, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function SubjectDescriptionBookmarkListComponent_ng_container_19_div_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](4, "h2", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](6, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](7, SubjectDescriptionBookmarkListComponent_ng_container_19_div_6_div_7_Template, 4, 4, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](8, SubjectDescriptionBookmarkListComponent_ng_container_19_div_6_div_8_Template, 4, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](9, "pre", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4286 = ctx.$implicit;
var i_r4287 = ctx.index;
var ctx_r4280 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("id", "record_" + item_r4286.Id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate2 */
"Yc"](" ", (ctx_r4280.descriptionIndexModel.Page - 1) * ctx_r4280.descriptionIndexModel.PageSize + (i_r4287 + 1), ". ", ctx_r4280.translate.currentLang == "en" ? item_r4286.AchievementHindi : item_r4286.SubjectHindi ? item_r4286.SubjectHindi : item_r4286.AchievementHindi, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4286 == null ? null : item_r4286.ImagePath);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4286 == null ? null : item_r4286.PdfFIleName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("innerHTML", ctx_r4280.translate.currentLang == "hi" ? item_r4286.EditorDetail : item_r4286.EditorDetailEnglish, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeHtml */
"Nc"]);
}
}
function SubjectDescriptionBookmarkListComponent_ng_container_19_div_8_Template(rf, ctx) {
if (rf & 1) {
var _r4295 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "select", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("change", function SubjectDescriptionBookmarkListComponent_ng_container_19_div_8_Template_select_change_1_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r4295);
var ctx_r4294 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r4294.descriptionChangePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "option", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](4, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "option", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](6, "15");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](8, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](9, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](10, "60");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](12, "120");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "pagination-controls", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("pageChange", function SubjectDescriptionBookmarkListComponent_ng_container_19_div_8_Template_pagination_controls_pageChange_13_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵrestoreView */
"Mc"](_r4295);
var ctx_r4296 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r4296.descriptionGetNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](15, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4281 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r4281.descriptionTotalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](4, 4, "All_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](14, 6, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](15, 8, "Next_txt"));
}
}
function SubjectDescriptionBookmarkListComponent_ng_container_19_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](4, SubjectDescriptionBookmarkListComponent_ng_container_19_div_4_Template, 3, 2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](5, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](6, SubjectDescriptionBookmarkListComponent_ng_container_19_div_6_Template, 10, 6, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](7, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](8, SubjectDescriptionBookmarkListComponent_ng_container_19_div_8_Template, 16, 10, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r4276 = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r4276.descriptionModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind2 */
"pc"](7, 3, ctx_r4276.descriptionModel, ctx_r4276.descriptionPagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4276.descriptionTotalRecords > 15);
}
}
function SubjectDescriptionBookmarkListComponent_app_mini_loader_20_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-mini-loader");
}
}
function SubjectDescriptionBookmarkListComponent_app_no_records_21_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-no-records", 39);
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("showImage", true);
}
}
var SubjectDescriptionBookmarkListComponent =
/*@__PURE__*/
function () {
var SubjectDescriptionBookmarkListComponent =
/*#__PURE__*/
function () {
//#endregion
function SubjectDescriptionBookmarkListComponent(achievementAwardService, _dptDistrictWebsiteService, _route, _commonService, route, translate) {
var _this114 = this;
_classCallCheck(this, SubjectDescriptionBookmarkListComponent);
this.achievementAwardService = achievementAwardService;
this._dptDistrictWebsiteService = _dptDistrictWebsiteService;
this._route = _route;
this._commonService = _commonService;
this.route = route;
this.translate = translate;
this.descriptionIndexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* IndexModel */
"d"]();
this.descriptionTotalRecords = 0;
this.descriptionPagerConfig = {
id: 'description-paging',
itemsPerPage: this.descriptionIndexModel.PageSize,
currentPage: this.descriptionIndexModel.Page,
totalItems: this.descriptionTotalRecords
};
this.departmentCode = 0;
this.pageName = "";
this.submenuCode = 0;
this._route.paramMap.subscribe(function (params) {
_this114.pageTitle = undefined;
var url = _this114.route.url.replace('/', '').split('/');
var _dptCode = _this114._route.snapshot.params.dptCode;
_this114.departmentCode = _dptCode ? Number(_dptCode) : _this114._commonService.GetWebDistDeptCode();
var _catCode = _this114._route.snapshot.params.catCode;
if (_catCode) {
_this114.catCode = Number(_catCode);
}
var _subCatCode = _this114._route.snapshot.params.subCatCode;
if (_subCatCode) {
_this114.subCatCode = Number(_subCatCode);
}
var _submenuCode = _this114._route.snapshot.params.submenuCode;
if (_submenuCode) {
_this114.submenuCode = Number(_submenuCode);
}
if (_this114.submenuCode >= 0) {
_this114.pageName = _this114.subCatCode ? url[url.length - 5] : _this114.catCode ? url[url.length - 4] : url[url.length - 3];
} else {
_this114.pageName = _this114.subCatCode ? url[url.length - 4] : _this114.catCode ? url[url.length - 3] : url[url.length - 2];
}
_this114.getPageHeading();
_this114._commonService.SetWebTitle(_this114.translate.currentLang == 'hi' ? "विवरण" : "Description");
});
}
return _createClass2(SubjectDescriptionBookmarkListComponent, [{
key: "getPageHeading",
value: function getPageHeading() {
if (this.submenuCode > 0) {
this.getSubmenuDetail();
} else if (this.subCatCode > 0) {
this.getSubCategoryDetail();
} else {
this.getCategoryDetail();
}
}
}, {
key: "getSubmenuDetail",
value: function getSubmenuDetail() {
var _this115 = this;
this._dptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(function (res) {
if (res.IsSuccess) {
var submenu = res.Data;
if (submenu) {
_this115.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
_this115.pageTitle.NameEnglish = submenu.DisplayNameEnglish;
_this115.pageTitle.NameHindi = submenu.DisplayNameHindi;
_this115.pageTitle.ImagePath = submenu.IconImage;
_this115._commonService.SetWebTitle(_this115.translate.currentLang == 'hi' ? _this115.pageTitle.NameHindi : _this115.pageTitle.NameEnglish);
}
}
}, function (error) {});
}
}, {
key: "ngOnInit",
value: function ngOnInit() {
this.getDescriptionData();
} //#region
}, {
key: "getDescriptionData",
value: function getDescriptionData() {
var _this116 = this;
this.descriptionModel = undefined;
this.descriptionIndexModel.OrderBy = "Priority";
this.descriptionIndexModel.OrderByAsc = 1;
this.descriptionIndexModel.AdvanceSearchModel = {
DepartmentCode: this.departmentCode,
CategoryCode: this.catCode || 0,
SubCategoryCode: this.subCatCode || 0
};
this.achievementAwardService.GetAdvertisementListData(this.descriptionIndexModel).subscribe(function (response) {
if (response.IsSuccess) {
_this116.descriptionModel = response.Data.Data;
if (!_this116.descriptionIndexModel.IsPostBack) {
_this116.descriptionTotalRecords = response.Data.TotalRecords;
}
_this116.descriptionUpdatePageConfig();
} else {
_this116.descriptionModel = [];
}
}, function (error) {
_this116.descriptionModel = [];
});
}
}, {
key: "descriptionGetNextPageRecord",
value: function descriptionGetNextPageRecord(page) {
window.scroll(0, 0);
this.descriptionIndexModel.IsPostBack = true;
this.descriptionIndexModel.Page = page;
this.getDescriptionData();
}
}, {
key: "descriptionChangePageSize",
value: function descriptionChangePageSize(value) {
window.scroll(0, 0);
this.descriptionIndexModel.IsPostBack = true;
this.descriptionIndexModel.PageSize = Number(value);
this.descriptionIndexModel.Page = 1;
this.getDescriptionData();
}
}, {
key: "descriptionUpdatePageConfig",
value: function descriptionUpdatePageConfig() {
this.descriptionPagerConfig.itemsPerPage = this.descriptionIndexModel.PageSize;
this.descriptionPagerConfig.currentPage = this.descriptionIndexModel.Page;
this.descriptionPagerConfig.totalItems = this.descriptionTotalRecords;
} //#endregion
}, {
key: "getCategoryDetail",
value: function getCategoryDetail() {
var _this117 = this;
this.achievementAwardService.GetAcievementCatDetail(this.catCode).subscribe(function (res) {
if (res.IsSuccess) {
_this117.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
var catDetail = res.Data;
_this117.pageTitle.NameEnglish = catDetail.SubMenuNameEnglish;
_this117.pageTitle.NameHindi = catDetail.SubMenuNameHindi;
_this117.pageTitle.ImagePath = catDetail.ImagePath;
_this117._commonService.SetWebTitle(_this117.translate.currentLang == 'hi' ? _this117.pageTitle.NameHindi : _this117.pageTitle.NameEnglish);
}
}, function (error) {
console.error(error);
});
}
}, {
key: "getSubCategoryDetail",
value: function getSubCategoryDetail() {
var _this118 = this;
this.achievementAwardService.GetAcievementSubCatDetail(this.subCatCode).subscribe(function (res) {
if (res.IsSuccess) {
_this118.pageTitle = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_0__[
/* PageTitleModel */
"f"]();
var subCatDetail = res.Data;
_this118.pageTitle.NameEnglish = subCatDetail.Title;
_this118.pageTitle.NameHindi = subCatDetail.TitleHindi;
_this118.pageTitle.ImagePath = subCatDetail.ImagePath;
_this118._commonService.SetWebTitle(_this118.translate.currentLang == 'hi' ? _this118.pageTitle.NameHindi : _this118.pageTitle.NameEnglish);
}
}, function (error) {
console.error(error);
});
}
}]);
}();
SubjectDescriptionBookmarkListComponent.ɵfac = function SubjectDescriptionBookmarkListComponent_Factory(t) {
return new (t || SubjectDescriptionBookmarkListComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_achievement_award_service__WEBPACK_IMPORTED_MODULE_2__[
/* AchievementAwardService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_3__[
/* DptDistrictWebsiteService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_4__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_5__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_4__[
/* Router */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__[
/* TranslateService */
"d"]));
};
SubjectDescriptionBookmarkListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdefineComponent */
"Pb"]({
type: SubjectDescriptionBookmarkListComponent,
selectors: [["app-subject-description-bookmark-list"]],
decls: 22,
vars: 14,
consts: [["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [4, "ngIf"], [1, "order_page"], [1, "gallery", "pt-5"], [1, "container-fluid"], [1, "row"], [1, "col-lg-12", "p-0"], [1, "title", "text-center"], [1, "img-fluid", "mr-10", 3, "src", "title", "alt", "error"], [3, "showImage", 4, "ngIf"], [1, "container"], [1, "col-lg-12"], [4, "ngFor", "ngForOf"], ["class", "row mt-4", 3, "id", 4, "ngFor", "ngForOf"], ["class", "new-pagination-outer", 4, "ngIf"], ["href", "javascript:void(0);", 1, "btn", "btn-round", "btn-theme", "btn-yellow", "mb-3", 3, "click"], [1, "row", "mt-4", 3, "id"], [1, "card-d-1"], [1, "d-md-flex", "align-items-center", "justify-content-between", "mb-2"], [1, "text-color-theme-blue", "font-size-3x"], [1, "d-flex", "align-items-center"], [3, "innerHTML"], [1, "card-d-1-gallery-img"], ["target", "_blank", 3, "href"], [3, "src", "title", "alt", "error"], [1, "card-d-1-gallery-pdf"], [1, "fas", "fa-file-pdf"], [1, "new-pagination-outer"], ["name", "example_length", "aria-controls", "example", 1, "form-control-sm", 2, "width", "70px", 3, "change"], [3, "value"], ["selected", "", "value", "15"], ["value", "30"], ["value", "60"], ["value", "120"], ["id", "description-paging", "autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], [3, "showImage"]],
template: function SubjectDescriptionBookmarkListComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelement */
"Wb"](0, "app-loader");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](1, "nav", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](2, "ol", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](3, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](4, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtext */
"Vc"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipe */
"nc"](6, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](7, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](8, SubjectDescriptionBookmarkListComponent_span_8_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](9, SubjectDescriptionBookmarkListComponent_span_9_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](10, "section", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](11, "section", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](13, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](14, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](15, "h1", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementStart */
"ac"](16, "img", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵlistener */
"ic"]("error", function SubjectDescriptionBookmarkListComponent_Template_img_error_16_listener($event) {
return ctx._commonService.onImageError($event, "assets/images/ADVT.png");
});
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](17, SubjectDescriptionBookmarkListComponent_span_17_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](18, SubjectDescriptionBookmarkListComponent_span_18_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](19, SubjectDescriptionBookmarkListComponent_ng_container_19_Template, 9, 6, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](20, SubjectDescriptionBookmarkListComponent_app_mini_loader_20_Template, 1, 0, "app-mini-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtemplate */
"Tc"](21, SubjectDescriptionBookmarkListComponent_app_no_records_21_Template, 1, 1, "app-no-records", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx._commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpipeBind1 */
"oc"](6, 12, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("title", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", ctx.pageTitle ? ctx.translate.currentLang != "hi" ? ctx.pageTitle == null ? null : ctx.pageTitle.NameEnglish : ctx.pageTitle == null ? null : ctx.pageTitle.NameHindi : " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("src", ctx.pageTitle == null ? null : ctx.pageTitle.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵsanitizeUrl */
"Pc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.pageTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.descriptionModel && (ctx.descriptionModel == null ? null : ctx.descriptionModel.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", !ctx.descriptionModel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.descriptionModel && ctx.descriptionModel.length == 0);
}
},
directives: [_loader_loader_component__WEBPACK_IMPORTED_MODULE_7__[
/* LoaderComponent */
"a"], _angular_router__WEBPACK_IMPORTED_MODULE_4__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_8__[
/* NgIf */
"n"], _angular_common__WEBPACK_IMPORTED_MODULE_8__[
/* NgForOf */
"m"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__[
/* NgSelectOption */
"q"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__[
/* ɵangular_packages_forms_forms_x */
"w"], ngx_pagination__WEBPACK_IMPORTED_MODULE_10__[
/* PaginationControlsComponent */
"c"], src_app_mini_loader_mini_loader_component__WEBPACK_IMPORTED_MODULE_11__[
/* MiniLoaderComponent */
"a"], src_app_no_records_no_records_component__WEBPACK_IMPORTED_MODULE_12__[
/* NoRecordsComponent */
"a"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__[
/* TranslatePipe */
"c"], ngx_pagination__WEBPACK_IMPORTED_MODULE_10__[
/* PaginatePipe */
"b"]],
styles: [""]
});
return SubjectDescriptionBookmarkListComponent;
}();
/***/
},
/***/
"VRyK":
/***/
function VRyK(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return merge;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HDdC");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("z+Ro");
/* harmony import */
var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("bHdf");
/* harmony import */
var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("yCtX");
function merge() {
var concurrent = Number.POSITIVE_INFINITY;
var scheduler = null;
for (var _len7 = arguments.length, observables = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) {
observables[_key8] = arguments[_key8];
}
var last = observables[observables.length - 1];
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__[
/* isScheduler */
"a"])(last)) {
scheduler = observables.pop();
if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {
concurrent = observables.pop();
}
} else if (typeof last === 'number') {
concurrent = observables.pop();
}
if (scheduler === null && observables.length === 1 && observables[0] instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__[
/* Observable */
"a"]) {
return observables[0];
}
return Object(_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__[
/* mergeAll */
"a"])(concurrent)(Object(_fromArray__WEBPACK_IMPORTED_MODULE_3__[
/* fromArray */
"a"])(observables, scheduler));
} //# sourceMappingURL=merge.js.map
/***/
},
/***/
"VnJx":
/***/
function VnJx(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return ImportantDecisionService;
});
/* harmony import */
var _Model_app_setting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GAWG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("MLVi");
var ImportantDecisionService =
/*@__PURE__*/
function () {
var ImportantDecisionService =
/*#__PURE__*/
function () {
function ImportantDecisionService(_baseService) {
_classCallCheck(this, ImportantDecisionService);
this._baseService = _baseService;
}
return _createClass2(ImportantDecisionService, [{
key: "GetImportantDecisionListData",
value: function GetImportantDecisionListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetImportantDecisionListurl, model);
}
}, {
key: "GetById",
value: function GetById(id) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetImportantDecisionDetailurl + id, null);
}
}, {
key: "GetAwardListData",
value: function GetAwardListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAwardListUrl, model);
}
}, {
key: "GetUpcomingEventListData",
value: function GetUpcomingEventListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetUpcomingEventListUrl, model);
}
}, {
key: "GetPublicationsListData",
value: function GetPublicationsListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetPublicationsListUrl, model);
}
}, {
key: "GetAnnualProgressReportListData",
value: function GetAnnualProgressReportListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetAnnualProgramListUrl, model);
}
}, {
key: "GetDetailById",
value: function GetDetailById(id) {
return this._baseService.get(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetImportantDecisionDetailurl + id);
}
}, {
key: "GetSubCategoryGroupImportantDecisionListData",
value: function GetSubCategoryGroupImportantDecisionListData(model) {
return this._baseService.post(_Model_app_setting__WEBPACK_IMPORTED_MODULE_0__[
/* AppSetting */
"a"].GetImportantDecisionListGroupBySubCategoryurl, model);
}
}]);
}();
ImportantDecisionService.ɵfac = function ImportantDecisionService_Factory(t) {
return new (t || ImportantDecisionService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵinject */
"ec"](_base_service__WEBPACK_IMPORTED_MODULE_2__[
/* BaseService */
"a"]));
};
ImportantDecisionService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__[
/* ɵɵdefineInjectable */
"Rb"]({
token: ImportantDecisionService,
factory: ImportantDecisionService.ɵfac,
providedIn: 'root'
});
return ImportantDecisionService;
}();
/***/
},
/***/
"XNiG":
/***/
function XNiG(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return SubjectSubscriber;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return Subject;
});
/* unused harmony export AnonymousSubject */
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HDdC");
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("7o/Q");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("quSY");
/* harmony import */
var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("9ppp");
/* harmony import */
var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Ylt2");
/* harmony import */
var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("2QA8");
var SubjectSubscriber =
/*#__PURE__*/
function (_Subscriber__WEBPACK_3) {
function SubjectSubscriber(destination) {
var _this119;
_classCallCheck(this, SubjectSubscriber);
_this119 = _callSuper(this, SubjectSubscriber, [destination]);
_this119.destination = destination;
return _this119;
}
_inherits(SubjectSubscriber, _Subscriber__WEBPACK_3);
return _createClass2(SubjectSubscriber);
}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__[
/* Subscriber */
"a"]);
var Subject =
/*@__PURE__*/
function () {
var Subject =
/*#__PURE__*/
function (_Observable__WEBPACK_, _internal_symbol_rxSu2) {
function Subject() {
var _this120;
_classCallCheck(this, Subject);
_this120 = _callSuper(this, Subject);
_this120.observers = [];
_this120.closed = false;
_this120.isStopped = false;
_this120.hasError = false;
_this120.thrownError = null;
return _this120;
}
_inherits(Subject, _Observable__WEBPACK_);
return _createClass2(Subject, [{
key: _internal_symbol_rxSu2,
value: function value() {
return new SubjectSubscriber(this);
}
}, {
key: "lift",
value: function lift(operator) {
var subject = new AnonymousSubject(this, this);
subject.operator = operator;
return subject;
}
}, {
key: "next",
value: function next(value) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__[
/* ObjectUnsubscribedError */
"a"]();
}
if (!this.isStopped) {
var observers = this.observers;
var len = observers.length;
var copy = observers.slice();
for (var i = 0; i < len; i++) {
copy[i].next(value);
}
}
}
}, {
key: "error",
value: function error(err) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__[
/* ObjectUnsubscribedError */
"a"]();
}
this.hasError = true;
this.thrownError = err;
this.isStopped = true;
var observers = this.observers;
var len = observers.length;
var copy = observers.slice();
for (var i = 0; i < len; i++) {
copy[i].error(err);
}
this.observers.length = 0;
}
}, {
key: "complete",
value: function complete() {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__[
/* ObjectUnsubscribedError */
"a"]();
}
this.isStopped = true;
var observers = this.observers;
var len = observers.length;
var copy = observers.slice();
for (var i = 0; i < len; i++) {
copy[i].complete();
}
this.observers.length = 0;
}
}, {
key: "unsubscribe",
value: function unsubscribe() {
this.isStopped = true;
this.closed = true;
this.observers = null;
}
}, {
key: "_trySubscribe",
value: function _trySubscribe(subscriber) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__[
/* ObjectUnsubscribedError */
"a"]();
} else {
return _superPropGet(Subject, "_trySubscribe", this, 3)([subscriber]);
}
}
}, {
key: "_subscribe",
value: function _subscribe(subscriber) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__[
/* ObjectUnsubscribedError */
"a"]();
} else if (this.hasError) {
subscriber.error(this.thrownError);
return _Subscription__WEBPACK_IMPORTED_MODULE_2__[
/* Subscription */
"a"].EMPTY;
} else if (this.isStopped) {
subscriber.complete();
return _Subscription__WEBPACK_IMPORTED_MODULE_2__[
/* Subscription */
"a"].EMPTY;
} else {
this.observers.push(subscriber);
return new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__[
/* SubjectSubscription */
"a"](this, subscriber);
}
}
}, {
key: "asObservable",
value: function asObservable() {
var observable = new _Observable__WEBPACK_IMPORTED_MODULE_0__[
/* Observable */
"a"]();
observable.source = this;
return observable;
}
}]);
}(_Observable__WEBPACK_IMPORTED_MODULE_0__[
/* Observable */
"a"], _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__[
/* rxSubscriber */
"a"]);
Subject.create = function (destination, source) {
return new AnonymousSubject(destination, source);
};
return Subject;
}();
var AnonymousSubject =
/*#__PURE__*/
function (_Subject) {
function AnonymousSubject(destination, source) {
var _this121;
_classCallCheck(this, AnonymousSubject);
_this121 = _callSuper(this, AnonymousSubject);
_this121.destination = destination;
_this121.source = source;
return _this121;
}
_inherits(AnonymousSubject, _Subject);
return _createClass2(AnonymousSubject, [{
key: "next",
value: function next(value) {
var destination = this.destination;
if (destination && destination.next) {
destination.next(value);
}
}
}, {
key: "error",
value: function error(err) {
var destination = this.destination;
if (destination && destination.error) {
this.destination.error(err);
}
}
}, {
key: "complete",
value: function complete() {
var destination = this.destination;
if (destination && destination.complete) {
this.destination.complete();
}
}
}, {
key: "_subscribe",
value: function _subscribe(subscriber) {
var source = this.source;
if (source) {
return this.source.subscribe(subscriber);
} else {
return _Subscription__WEBPACK_IMPORTED_MODULE_2__[
/* Subscription */
"a"].EMPTY;
}
}
}]);
}(Subject); //# sourceMappingURL=Subject.js.map
/***/
},
/***/
"XoHu":
/***/
function XoHu(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return isObject;
});
function isObject(x) {
return x !== null && typeof x === 'object';
} //# sourceMappingURL=isObject.js.map
/***/
},
/***/
"Xwq/":
/***/
function Xwq_(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var Subscriber_1 =
/*@__PURE__*/
__webpack_require__("FWf1");
var rxSubscriber_1 =
/*@__PURE__*/
__webpack_require__("p//D");
var Observer_1 =
/*@__PURE__*/
__webpack_require__("GiSu");
function toSubscriber(nextOrObserver, error, complete) {
if (nextOrObserver) {
if (nextOrObserver instanceof Subscriber_1.Subscriber) {
return nextOrObserver;
}
if (nextOrObserver[rxSubscriber_1.rxSubscriber]) {
return nextOrObserver[rxSubscriber_1.rxSubscriber]();
}
}
if (!nextOrObserver && !error && !complete) {
return new Subscriber_1.Subscriber(Observer_1.empty);
}
return new Subscriber_1.Subscriber(nextOrObserver, error, complete);
}
exports.toSubscriber = toSubscriber;
/***/
},
/***/
"Ylt2":
/***/
function Ylt2(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return SubjectSubscription;
});
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("quSY");
var SubjectSubscription =
/*#__PURE__*/
function (_Subscription__WEBPAC2) {
function SubjectSubscription(subject, subscriber) {
var _this122;
_classCallCheck(this, SubjectSubscription);
_this122 = _callSuper(this, SubjectSubscription);
_this122.subject = subject;
_this122.subscriber = subscriber;
_this122.closed = false;
return _this122;
}
_inherits(SubjectSubscription, _Subscription__WEBPAC2);
return _createClass2(SubjectSubscription, [{
key: "unsubscribe",
value: function unsubscribe() {
if (this.closed) {
return;
}
this.closed = true;
var subject = this.subject;
var observers = subject.observers;
this.subject = null;
if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {
return;
}
var subscriberIndex = observers.indexOf(this.subscriber);
if (subscriberIndex !== -1) {
observers.splice(subscriberIndex, 1);
}
}
}]);
}(_Subscription__WEBPACK_IMPORTED_MODULE_0__[
/* Subscription */
"a"]); //# sourceMappingURL=SubjectSubscription.js.map
/***/
},
/***/
"aJGj":
/***/
function aJGj(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var Observable_1 =
/*@__PURE__*/
__webpack_require__("Q1FS");
exports.EMPTY =
/*@__PURE__*/
new Observable_1.Observable(function (subscriber) {
return subscriber.complete();
});
function empty(scheduler) {
return scheduler ? emptyScheduled(scheduler) : exports.EMPTY;
}
exports.empty = empty;
function emptyScheduled(scheduler) {
return new Observable_1.Observable(function (subscriber) {
return scheduler.schedule(function () {
return subscriber.complete();
});
});
}
/***/
},
/***/
"b6Qw":
/***/
function b6Qw(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return CookieService;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fXoL");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ofXK"); // This service is based on the `ng2-cookies` package which sadly is not a service and does
var CookieService =
/*@__PURE__*/
function () {
var CookieService =
/*#__PURE__*/
function () {
function CookieService( // The type `Document` may not be used here. Although a fix is on its way,
// we will go with `any` for now to support Angular 2.4.x projects.
// Issue: https://github.com/angular/angular/issues/12631
// Fix: https://github.com/angular/angular/pull/14894
document, // Get the `PLATFORM_ID` so we can check if we're in a browser.
platformId) {
_classCallCheck(this, CookieService);
this.document = document;
this.platformId = platformId;
this.documentIsAccessible = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* isPlatformBrowser */
"w"])(this.platformId);
}
/**
* @param name Cookie name
* @returns boolean - whether cookie with specified name exists
*/
return _createClass2(CookieService, [{
key: "check",
value: function check(name) {
if (!this.documentIsAccessible) {
return false;
}
name = encodeURIComponent(name);
var regExp = this.getCookieRegExp(name);
var exists = regExp.test(this.document.cookie);
return exists;
}
/**
* @param name Cookie name
* @returns property value
*/
}, {
key: "get",
value: function get(name) {
if (this.documentIsAccessible && this.check(name)) {
name = encodeURIComponent(name);
var regExp = this.getCookieRegExp(name);
var result = regExp.exec(this.document.cookie);
return this.safeDecodeURIComponent(result[1]);
} else {
return '';
}
}
/**
* @returns all the cookies in json
*/
}, {
key: "getAll",
value: function getAll() {
var _this123 = this;
if (!this.documentIsAccessible) {
return {};
}
var cookies = {};
var document = this.document;
if (document.cookie && document.cookie !== '') {
document.cookie.split(';').forEach(function (currentCookie) {
var _currentCookie$split = currentCookie.split('='),
_currentCookie$split2 = _slicedToArray(_currentCookie$split, 2),
cookieName = _currentCookie$split2[0],
cookieValue = _currentCookie$split2[1];
cookies[_this123.safeDecodeURIComponent(cookieName.replace(/^ /, ''))] = _this123.safeDecodeURIComponent(cookieValue);
});
}
return cookies;
}
}, {
key: "set",
value: function set(name, value, expiresOrOptions, path, domain, secure, sameSite) {
if (!this.documentIsAccessible) {
return;
}
if (typeof expiresOrOptions === 'number' || expiresOrOptions instanceof Date || path || domain || secure || sameSite) {
var optionsBody = {
expires: expiresOrOptions,
path: path,
domain: domain,
secure: secure,
sameSite: sameSite ? sameSite : 'Lax'
};
this.set(name, value, optionsBody);
return;
}
var cookieString = encodeURIComponent(name) + '=' + encodeURIComponent(value) + ';';
var options = expiresOrOptions ? expiresOrOptions : {};
if (options.expires) {
if (typeof options.expires === 'number') {
var dateExpires = new Date(new Date().getTime() + options.expires * 1000 * 60 * 60 * 24);
cookieString += 'expires=' + dateExpires.toUTCString() + ';';
} else {
cookieString += 'expires=' + options.expires.toUTCString() + ';';
}
}
if (options.path) {
cookieString += 'path=' + options.path + ';';
}
if (options.domain) {
cookieString += 'domain=' + options.domain + ';';
}
if (options.secure === false && options.sameSite === 'None') {
options.secure = true;
console.warn("[ngx-cookie-service] Cookie ".concat(name, " was forced with secure flag because sameSite=None.") + "More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130");
}
if (options.secure) {
cookieString += 'secure;';
}
if (!options.sameSite) {
options.sameSite = 'Lax';
}
cookieString += 'sameSite=' + options.sameSite + ';';
this.document.cookie = cookieString;
}
/**
* @param name Cookie name
* @param path Cookie path
* @param domain Cookie domain
*/
}, {
key: "delete",
value: function _delete(name, path, domain, secure) {
var sameSite = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'Lax';
if (!this.documentIsAccessible) {
return;
}
var expiresDate = new Date('Thu, 01 Jan 1970 00:00:01 GMT');
this.set(name, '', {
expires: expiresDate,
path: path,
domain: domain,
secure: secure,
sameSite: sameSite
});
}
/**
* @param path Cookie path
* @param domain Cookie domain
*/
}, {
key: "deleteAll",
value: function deleteAll(path, domain, secure) {
var sameSite = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'Lax';
if (!this.documentIsAccessible) {
return;
}
var cookies = this.getAll();
for (var cookieName in cookies) {
if (cookies.hasOwnProperty(cookieName)) {
this["delete"](cookieName, path, domain, secure, sameSite);
}
}
}
/**
* @param name Cookie name
* @returns property RegExp
*/
}, {
key: "getCookieRegExp",
value: function getCookieRegExp(name) {
var escapedName = name.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi, '\\$1');
return new RegExp('(?:^' + escapedName + '|;\\s*' + escapedName + ')=(.*?)(?:;|$)', 'g');
}
}, {
key: "safeDecodeURIComponent",
value: function safeDecodeURIComponent(encodedURIComponent) {
try {
return decodeURIComponent(encodedURIComponent);
} catch (_a) {
// probably it is not uri encoded. return as is
return encodedURIComponent;
}
}
}]);
}();
CookieService.ɵfac = function CookieService_Factory(t) {
return new (t || CookieService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵinject */
"ec"](_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* DOCUMENT */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵinject */
"ec"](_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* PLATFORM_ID */
"H"]));
};
CookieService.ɵprov =
/*@__PURE__*/
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵdefineInjectable */
"Rb"])({
factory: function CookieService_Factory() {
return new CookieService(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵinject */
"ec"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__[
/* DOCUMENT */
"d"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* ɵɵinject */
"ec"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__[
/* PLATFORM_ID */
"H"]));
},
token: CookieService,
providedIn: "root"
});
return CookieService;
}();
/*
* Public API Surface of ngx-cookie-service
*/
/**
* Generated bundle index. Do not edit.
*/
//# sourceMappingURL=ngx-cookie-service.js.map
/***/
},
/***/
"bHdf":
/***/
function bHdf(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return mergeAll;
});
/* harmony import */
var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5+tZ");
/* harmony import */
var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("SpAZ");
function mergeAll() {
var concurrent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Number.POSITIVE_INFINITY;
return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__[
/* mergeMap */
"a"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__[
/* identity */
"a"], concurrent);
} //# sourceMappingURL=mergeAll.js.map
/***/
},
/***/
"bOdf":
/***/
function bOdf(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return concatMap;
});
/* harmony import */
var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5+tZ");
function concatMap(project, resultSelector) {
return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__[
/* mergeMap */
"a"])(project, resultSelector, 1);
} //# sourceMappingURL=concatMap.js.map
/***/
},
/***/
"c2HN":
/***/
function c2HN(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return isPromise;
});
function isPromise(value) {
return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
} //# sourceMappingURL=isPromise.js.map
/***/
},
/***/
"cDf5":
/***/
function cDf5(module, exports) {
function _typeof(o) {
"@babel/helpers - typeof";
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
}
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/
},
/***/
"cp0P":
/***/
function cp0P(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return forkJoin;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HDdC");
/* harmony import */
var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("DH7j");
/* harmony import */
var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("lJxs");
/* harmony import */
var _util_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("XoHu");
/* harmony import */
var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Cfvw");
function forkJoin() {
for (var _len8 = arguments.length, sources = new Array(_len8), _key9 = 0; _key9 < _len8; _key9++) {
sources[_key9] = arguments[_key9];
}
if (sources.length === 1) {
var first = sources[0];
if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__[
/* isArray */
"a"])(first)) {
return forkJoinInternal(first, null);
}
if (Object(_util_isObject__WEBPACK_IMPORTED_MODULE_3__[
/* isObject */
"a"])(first) && Object.getPrototypeOf(first) === Object.prototype) {
var keys = Object.keys(first);
return forkJoinInternal(keys.map(function (key) {
return first[key];
}), keys);
}
}
if (typeof sources[sources.length - 1] === 'function') {
var resultSelector = sources.pop();
sources = sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__[
/* isArray */
"a"])(sources[0]) ? sources[0] : sources;
return forkJoinInternal(sources, null).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__[
/* map */
"a"])(function (args) {
return resultSelector.apply(void 0, _toConsumableArray(args));
}));
}
return forkJoinInternal(sources, null);
}
function forkJoinInternal(sources, keys) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__[
/* Observable */
"a"](function (subscriber) {
var len = sources.length;
if (len === 0) {
subscriber.complete();
return;
}
var values = new Array(len);
var completed = 0;
var emitted = 0;
var _loop = function _loop(i) {
var source = Object(_from__WEBPACK_IMPORTED_MODULE_4__[
/* from */
"a"])(sources[i]);
var hasValue = false;
subscriber.add(source.subscribe({
next: function next(value) {
if (!hasValue) {
hasValue = true;
emitted++;
}
values[i] = value;
},
error: function error(err) {
return subscriber.error(err);
},
complete: function complete() {
completed++;
if (completed === len || !hasValue) {
if (emitted === len) {
subscriber.next(keys ? keys.reduce(function (result, key, i) {
return result[key] = values[i], result;
}, {}) : values);
}
subscriber.complete();
}
}
}));
};
for (var i = 0; i < len; i++) {
_loop(i);
}
});
} //# sourceMappingURL=forkJoin.js.map
/***/
},
/***/
"eIep":
/***/
function eIep(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return switchMap;
});
/* harmony import */
var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("lJxs");
/* harmony import */
var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Cfvw");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("zx2A");
function switchMap(project, resultSelector) {
if (typeof resultSelector === 'function') {
return function (source) {
return source.pipe(switchMap(function (a, i) {
return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__[
/* from */
"a"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__[
/* map */
"a"])(function (b, ii) {
return resultSelector(a, b, i, ii);
}));
}));
};
}
return function (source) {
return source.lift(new SwitchMapOperator(project));
};
}
var SwitchMapOperator =
/*#__PURE__*/
function () {
function SwitchMapOperator(project) {
_classCallCheck(this, SwitchMapOperator);
this.project = project;
}
return _createClass2(SwitchMapOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));
}
}]);
}();
var SwitchMapSubscriber =
/*#__PURE__*/
function (_innerSubscribe__WEBP2) {
function SwitchMapSubscriber(destination, project) {
var _this124;
_classCallCheck(this, SwitchMapSubscriber);
_this124 = _callSuper(this, SwitchMapSubscriber, [destination]);
_this124.project = project;
_this124.index = 0;
return _this124;
}
_inherits(SwitchMapSubscriber, _innerSubscribe__WEBP2);
return _createClass2(SwitchMapSubscriber, [{
key: "_next",
value: function _next(value) {
var result;
var index = this.index++;
try {
result = this.project(value, index);
} catch (error) {
this.destination.error(error);
return;
}
this._innerSub(result);
}
}, {
key: "_innerSub",
value: function _innerSub(result) {
var innerSubscription = this.innerSubscription;
if (innerSubscription) {
innerSubscription.unsubscribe();
}
var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__[
/* SimpleInnerSubscriber */
"a"](this);
var destination = this.destination;
destination.add(innerSubscriber);
this.innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__[
/* innerSubscribe */
"c"])(result, innerSubscriber);
if (this.innerSubscription !== innerSubscriber) {
destination.add(this.innerSubscription);
}
}
}, {
key: "_complete",
value: function _complete() {
var innerSubscription = this.innerSubscription;
if (!innerSubscription || innerSubscription.closed) {
_superPropGet(SwitchMapSubscriber, "_complete", this, 3)([]);
}
this.unsubscribe();
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
this.innerSubscription = undefined;
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
this.innerSubscription = undefined;
if (this.isStopped) {
_superPropGet(SwitchMapSubscriber, "_complete", this, 3)([]);
}
}
}, {
key: "notifyNext",
value: function notifyNext(innerValue) {
this.destination.next(innerValue);
}
}]);
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__[
/* SimpleOuterSubscriber */
"b"]); //# sourceMappingURL=switchMap.js.map
/***/
},
/***/
"eJ3O":
/***/
function eJ3O(module, exports, __webpack_require__) {
"use strict";
/*@__PURE__*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var Observable_1 =
/*@__PURE__*/
__webpack_require__("Q1FS");
var async_1 =
/*@__PURE__*/
__webpack_require__("1pIY");
var isNumeric_1 =
/*@__PURE__*/
__webpack_require__("p0+S");
var isScheduler_1 =
/*@__PURE__*/
__webpack_require__("nzqU");
function timer(dueTime, periodOrScheduler, scheduler) {
if (dueTime === void 0) {
dueTime = 0;
}
var period = -1;
if (isNumeric_1.isNumeric(periodOrScheduler)) {
period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);
} else if (isScheduler_1.isScheduler(periodOrScheduler)) {
scheduler = periodOrScheduler;
}
if (!isScheduler_1.isScheduler(scheduler)) {
scheduler = async_1.async;
}
return new Observable_1.Observable(function (subscriber) {
var due = isNumeric_1.isNumeric(dueTime) ? dueTime : +dueTime - scheduler.now();
return scheduler.schedule(dispatch, due, {
index: 0,
period: period,
subscriber: subscriber
});
});
}
exports.timer = timer;
function dispatch(state) {
var index = state.index,
period = state.period,
subscriber = state.subscriber;
subscriber.next(index);
if (subscriber.closed) {
return;
} else if (period === -1) {
return subscriber.complete();
}
state.index = index + 1;
this.schedule(state, period);
}
/***/
},
/***/
"eYzM":
/***/
function eYzM(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return AdmDeptLatestOrdersComponent;
});
/* harmony import */
var src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("T5CN");
/* harmony import */
var src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("j672");
/* harmony import */
var src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Lexf");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("AytR");
/* harmony import */
var src_app_Shared_Model_app_setting__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("GAWG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fXoL");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("tyNb");
/* harmony import */
var src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("t7Da");
/* harmony import */
var src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("LYBR");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("sYmb");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("jhN1");
/* harmony import */
var src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("qVlC");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("ofXK");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("3Pt+");
/* harmony import */
var ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("hzby");
/* harmony import */
var ngx_pagination__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("oOf3");
function AdmDeptLatestOrdersComponent_div_13_option_8_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4062 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("value", item_r4062.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"]("", item_r4062.Text, " ");
}
}
function AdmDeptLatestOrdersComponent_div_13_Template(rf, ctx) {
if (rf & 1) {
var _r4064 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "select", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_div_13_Template_select_ngModelChange_4_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r4064);
var ctx_r4063 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r4063.model.DepartmentCode = $event;
})("change", function AdmDeptLatestOrdersComponent_div_13_Template_select_change_4_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r4064);
var ctx_r4065 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r4065.GetSubType();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](5, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](8, AdmDeptLatestOrdersComponent_div_13_option_8_Template, 2, 2, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4052 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](3, 4, "Department_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx_r4052.model.DepartmentCode);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](7, 6, "Department_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx_r4052.dDLList == null ? null : ctx_r4052.dDLList.ddlDepartmentOrder);
}
}
function AdmDeptLatestOrdersComponent_option_22_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4066 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("value", item_r4066.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](item_r4066.Text);
}
}
function AdmDeptLatestOrdersComponent_option_31_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4067 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngValue", item_r4067.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r4067.Text, "");
}
}
function AdmDeptLatestOrdersComponent_option_40_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4068 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngValue", item_r4068.Id);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r4068.Lookup, "");
}
}
function AdmDeptLatestOrdersComponent_option_55_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "option", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4069 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngValue", item_r4069.Value);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r4069.Text, "");
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_ng_container_20_span_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "strong", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](4, " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](3, 1, "OrderNo_txt"), " ");
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_ng_container_20_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](1, AdmDeptLatestOrdersComponent_ng_container_106_ng_container_20_span_1_Template, 5, 3, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var ctx_r4070 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx_r4070.orderPublicPortal[0] == null ? null : ctx_r4070.orderPublicPortal[0].TypeDocumentNoMandatory) == ctx_r4070.orderValDocEnum.Yes);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_ng_template_21_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "strong", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](2, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](3, " / ");
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](2, 1, "OrderNo_txt"), " ");
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "strong", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r4076 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4079 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4079.translate.currentLang != "en" ? item_r4076.TypeNameHindi : item_r4076.TypeName, " ");
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_template_6_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "strong", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1, "N/A");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_container_10_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var item_r4076 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
var ctx_r4082 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4082.translate.currentLang != "en" ? item_r4076.SubTypeNameHindi : item_r4076.SubTypeName, " ");
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_template_11_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "strong", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1, "N/A");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_strong_18_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "strong", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4076 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", item_r4076.OrderNo, " ");
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_26_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "li", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "a", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "svg", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](3, "path", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](4, "path", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var attachment_r4094 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("href", attachment_r4094.Path, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_26_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](1, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_26_ng_container_1_li_1_Template, 5, 1, "li", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var attachment_r4094 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", attachment_r4094.Path || undefined != undefined && attachment_r4094.IsAnnexure == false);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_26_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "ul", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](1, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_26_ng_container_1_Template, 2, 1, "ng-container", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4076 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", item_r4076.AttachmentList);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_27_ng_container_1_li_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "li", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "a", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "svg", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](3, "path", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](4, "path", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var attachment_r4100 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("href", attachment_r4100.Path, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_27_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](1, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_27_ng_container_1_li_1_Template, 5, 1, "li", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var attachment_r4100 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", attachment_r4100.Path || undefined != undefined && attachment_r4100.IsAnnexure == true);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_27_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "ul", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](1, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_27_ng_container_1_Template, 2, 1, "ng-container", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4076 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", item_r4076.AttachmentList);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_a_28_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "a", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "svg", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](2, "path", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](3, "path", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4076 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r4076 == null ? null : item_r4076.ImagePath, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_a_29_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "a", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnamespaceSVG */
"lc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "svg", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](2, "path", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4076 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("href", item_r4076 == null ? null : item_r4076.Url, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵsanitizeUrl */
"Pc"]);
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_tr_34_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "tr", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](5, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_container_5_Template, 3, 1, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](6, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_template_6_Template, 2, 0, "ng-template", null, 57, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](9, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](10, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_container_10_Template, 2, 1, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](11, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ng_template_11_Template, 2, 0, "ng-template", null, 58, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](14, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](16, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](17, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](18, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_strong_18_Template, 2, 1, "strong", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](19, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](20, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](22, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](24, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](25, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](26, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_26_Template, 2, 1, "ul", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](27, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_ul_27_Template, 2, 1, "ul", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](28, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_a_28_Template, 4, 1, "a", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](29, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_a_29_Template, 3, 1, "a", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](30, "a", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](32, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var item_r4076 = ctx.$implicit;
var i_r4077 = ctx.index;
var group_r4078 = ctx.$implicit;
var _r4080 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](7);
var _r4083 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](12);
var ctx_r4073 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", (ctx_r4073.indexModel.Page - 1) * ctx_r4073.indexModel.PageSize + (i_r4077 + 1), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4076.TypeName || item_r4076.TypeNameHindi)("ngIfElse", _r4080);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4076.SubTypeName || item_r4076.SubTypeNameHindi)("ngIfElse", _r4083);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind2 */
"pc"](16, 15, item_r4076.Date, ctx_r4073.DateFormat));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4076.TypeDocumentNoMandatory == ctx_r4073.orderValDocEnum.Yes);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](item_r4076.Title);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", ctx_r4073.translate.currentLang != "en" ? item_r4076.DepartmentTitleHindi ? item_r4076.DepartmentTitleHindi : item_r4076.DepartmentTitle : item_r4076.DepartmentTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4076.AttachmentList.length > 0 && item_r4076.IsOldOrder == true && item_r4076.IsAnnexure == false);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4076.AttachmentList.length > 0 && item_r4076.IsOldOrder == false && item_r4076.IsAnnexure == true);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4076.ImagePath);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", item_r4076.Url);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate1 */
"vc"]("routerLink", "/order/detail/", group_r4078.Id, "");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](32, 18, "ViewDetail_txt"));
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_select_37_Template(rf, ctx) {
if (rf & 1) {
var _r4108 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("change", function AdmDeptLatestOrdersComponent_ng_container_106_select_37_Template_select_change_0_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r4108);
var ctx_r4107 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
return ctx_r4107.changePageSize($event.target.value);
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "option", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](5, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](6, "option", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](7, "25");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](8, "option", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](9, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](10, "option", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](11, "100");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var ctx_r4074 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("value", ctx_r4074.totalRecords);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](3, 2, "All_txt"));
}
}
function AdmDeptLatestOrdersComponent_ng_container_106_Template(rf, ctx) {
if (rf & 1) {
var _r4110 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerStart */
"Yb"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "table", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](5, "th", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](7, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](8, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](9, "strong", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](11, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](12, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](14, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](15, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](16, "strong", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](18, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](19, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](20, AdmDeptLatestOrdersComponent_ng_container_106_ng_container_20_Template, 2, 1, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](21, AdmDeptLatestOrdersComponent_ng_container_106_ng_template_21_Template, 4, 3, "ng-template", null, 50, _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplateRefExtractor */
"Uc"]);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](23, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](24, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](26, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](27, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](29, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](30, "th", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](32, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](33, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](34, AdmDeptLatestOrdersComponent_ng_container_106_tr_34_Template, 33, 20, "tr", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](35, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](36, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](37, AdmDeptLatestOrdersComponent_ng_container_106_select_37_Template, 12, 4, "select", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](38, "pagination-controls", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("pageChange", function AdmDeptLatestOrdersComponent_ng_container_106_Template_pagination_controls_pageChange_38_listener($event) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r4110);
var ctx_r4109 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
return ctx_r4109.getNextPageRecord($event);
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](39, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](40, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementContainerEnd */
"Xb"]();
}
if (rf & 2) {
var _r4071 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](22);
var ctx_r4059 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵnextContext */
"mc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](7, 13, "SrNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](11, 15, "Type_txt"), " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](14, 17, "SubType_txt"), " / ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](18, 19, "DateofIssue_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4059.model.Type > 0)("ngIfElse", _r4071);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](26, 21, "Title_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](29, 23, "Department_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](32, 25, "Documents_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind2 */
"pc"](35, 27, ctx_r4059.orderPublicPortal, ctx_r4059.pagerConfig));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx_r4059.totalRecords > (ctx_r4059.indexModel == null ? null : ctx_r4059.indexModel.PageSize));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("previousLabel", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](39, 30, "Previous_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("nextLabel", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](40, 32, "Next_txt"));
}
}
function AdmDeptLatestOrdersComponent_div_107_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "h3", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](3, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](3, 1, "NoRecordFound_txt"));
}
}
var _c0 = function _c0(a1) {
return {
containerClass: "theme-dark-blue",
dateInputFormat: a1,
showWeekNumbers: false
};
};
var AdmDeptLatestOrdersComponent =
/*@__PURE__*/
function () {
var AdmDeptLatestOrdersComponent =
/*#__PURE__*/
function () {
function AdmDeptLatestOrdersComponent(route, router, orderService, commonService, translate, _orderService, _titleService, _distDeptService) {
_classCallCheck(this, AdmDeptLatestOrdersComponent);
this.route = route;
this.router = router;
this.orderService = orderService;
this.commonService = commonService;
this.translate = translate;
this._orderService = _orderService;
this._titleService = _titleService;
this._distDeptService = _distDeptService;
this.indexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__[
/* IndexModel */
"d"]();
this.totalRecords = 0;
this.orderPublicPortal = [];
this.model = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_2__[
/* OrderEntryfrontModel */
"d"]();
this.dDLList = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__[
/* DDLModel */
"b"]();
this.DateFormat = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__[
/* environment */
"a"].DateFormat;
this.DatePickerFormat = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__[
/* environment */
"a"].DatePickerFormat;
this.minimumDate = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__[
/* environment */
"a"].MinimumDate;
this.ddlDepartment = [];
this.orderValDocEnum = src_app_Shared_Enum_order_enum__WEBPACK_IMPORTED_MODULE_0__[
/* OrderTypeValidationForDocNoEnum */
"f"];
this.IsLoading = true;
this.ddlOrderSubType = [];
this.lookupList = [];
}
return _createClass2(AdmDeptLatestOrdersComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this125 = this;
this.route.paramMap.subscribe(function (params) {
_this125.indexModel = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__[
/* IndexModel */
"d"]();
_this125.totalRecords = 0;
_this125.orderPublicPortal = [];
_this125.model = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_2__[
/* OrderEntryfrontModel */
"d"]();
_this125.dDLList = new src_app_Shared_Model_common_model__WEBPACK_IMPORTED_MODULE_1__[
/* DDLModel */
"b"]();
_this125.ddlDepartment = [];
_this125.IsLoading = true;
_this125.ddlOrderSubType = [];
_this125.model.DepartmentCode = _this125.commonService.GetWebDistDeptCode();
_this125.pagerConfig = {
id: "order",
itemsPerPage: _this125.indexModel.PageSize,
currentPage: _this125.indexModel.Page,
totalItems: _this125.totalRecords
};
_this125.saveFilterAndGet();
setTimeout(function () {
_this125.GetDDLList();
}, 200);
});
}
}, {
key: "reset",
value: function reset() {
this.model = new src_app_Shared_Model_order_view_model__WEBPACK_IMPORTED_MODULE_2__[
/* OrderEntryfrontModel */
"d"]();
sessionStorage.removeItem("isHistoryBack");
sessionStorage.removeItem("orderFilter");
this.saveFilterAndGet();
}
}, {
key: "GetList",
value: function GetList() {
var _this126 = this;
this.indexModel.PageSize = 10;
this.model.IndexModel = this.indexModel;
this.getFilter();
this.IsLoading = true;
this.orderService.GetAdminLatestOrder(this.model).subscribe(function (data) {
var _a, _b, _c, _d;
_this126.orderPublicPortal = [];
if (data.IsSuccess) {
_this126.orderPublicPortal = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.Data;
if (!_this126.indexModel.IsPostBack) {
_this126.totalRecords = (_d = (_c = data) === null || _c === void 0 ? void 0 : _c.Data) === null || _d === void 0 ? void 0 : _d.TotalRecords;
}
_this126.updatePageConfig();
} else {
_this126.totalRecords = 0;
}
_this126.IsLoading = false;
}, function (error) {
console.error(error.message);
});
}
}, {
key: "GetDDLList",
value: function GetDDLList() {
var _this127 = this;
if (sessionStorage.getItem("odrDDL") != undefined) {
this.dDLList = JSON.parse(sessionStorage.getItem("odrDDL"));
} else {
this._distDeptService.GetAllDDL(src_app_Shared_Model_app_setting__WEBPACK_IMPORTED_MODULE_4__[
/* AppSetting */
"a"].DDLKeyForAdmLatestOrderList).subscribe(function (data) {
var _a;
if (data.IsSuccess) {
_this127.dDLList = (_a = data) === null || _a === void 0 ? void 0 : _a.Data;
sessionStorage.setItem("odrDDL", JSON.stringify(_this127.dDLList));
}
}, function (error) {
console.error(error.message);
});
}
}
}, {
key: "GetSubType",
value: function GetSubType() {
var _this128 = this;
this.model.SubTypeCode = 0;
this.ddlOrderSubType = [];
if (this.model.DepartmentCode > 0 || this.model.Type > 0) {
this._distDeptService.GetOrderSubTypesByFilter(Number(this.model.Type), Number(this.model.DepartmentCode)).subscribe(function (data) {
if (data.IsSuccess) {
_this128.ddlOrderSubType = data.Data;
}
}, function (error) {// this._alertService.error(error.message);
});
}
}
}, {
key: "GetLookupList",
value: function GetLookupList() {
var _this129 = this;
var id = this.model.SubTypeCode;
if (id > 0) this._orderService.GetLookupTypeListByOrderDocumentSubTypeId(id).subscribe(function (data) {
if (data.IsSuccess) {
_this129.lookupList = data.Data;
}
}, function (error) {
console.error(error.message);
});
}
}, {
key: "saveFilterAndGet",
value: function saveFilterAndGet() {
this.saveFilter();
var IsLatestUpdate = JSON.parse(localStorage.getItem("IsLatestUpdate"));
if (IsLatestUpdate) {
var MinimumDate = new Date(new Date().getTime() - 15 * 24 * 60 * 60 * 1000);
var uTCDate = new Date(Date.UTC(new Date(MinimumDate).getFullYear(), new Date(MinimumDate).getMonth(), new Date(MinimumDate).getDate())).toISOString();
this.model.EntryFromDate = uTCDate;
}
this.GetList();
}
}, {
key: "getFilter",
value: function getFilter() {
if (JSON.parse(sessionStorage.getItem("isHistoryBack")) == true && sessionStorage.getItem("orderFilter") != undefined) {
sessionStorage.removeItem("isHistoryBack");
this.model = JSON.parse(sessionStorage.getItem("orderFilter"));
this.indexModel = this.model.IndexModel;
this.updatePageConfig();
this.GetSubType();
}
}
}, {
key: "saveFilter",
value: function saveFilter() {
this.model.IndexModel = this.indexModel;
sessionStorage.setItem("orderFilter", JSON.stringify(this.model));
} //#region paging
}, {
key: "getNextPageRecord",
value: function getNextPageRecord(page) {
window.scroll(0, 0);
this.indexModel.IsPostBack = true;
this.indexModel.Page = page;
this.saveFilterAndGet();
}
}, {
key: "changePageSize",
value: function changePageSize(value) {
window.scroll(0, 0);
this.indexModel.IsPostBack = true;
this.indexModel.PageSize = Number(value);
this.indexModel.Page = 1;
this.saveFilterAndGet();
}
}, {
key: "updatePageConfig",
value: function updatePageConfig() {
this.pagerConfig = {
itemsPerPage: this.indexModel.PageSize,
currentPage: this.indexModel.Page,
totalItems: this.totalRecords
};
} //#endregion
}, {
key: "ngOnDestroy",
value: function ngOnDestroy() {
localStorage.removeItem("IsLatestUpdate");
}
}]);
}();
AdmDeptLatestOrdersComponent.ɵfac = function AdmDeptLatestOrdersComponent_Factory(t) {
return new (t || AdmDeptLatestOrdersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* ActivatedRoute */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* Router */
"b"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_7__[
/* OrderService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_common_service__WEBPACK_IMPORTED_MODULE_8__[
/* CommonService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__[
/* TranslateService */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_order_service__WEBPACK_IMPORTED_MODULE_7__[
/* OrderService */
"a"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_10__[
/* Title */
"d"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdirectiveInject */
"Vb"](src_app_Shared_Service_dpt_district_website_service__WEBPACK_IMPORTED_MODULE_11__[
/* DptDistrictWebsiteService */
"a"]));
};
AdmDeptLatestOrdersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵdefineComponent */
"Pb"]({
type: AdmDeptLatestOrdersComponent,
selectors: [["app-adm-dept-latest-orders"]],
decls: 108,
vars: 92,
consts: [["aria-label", "breadcrumb", 1, "breadcrumb_nav"], [1, "breadcrumb"], [1, "breadcrumb-item"], [3, "routerLink"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [1, "order_page"], [1, "orders_filter"], [1, "container-fluid"], [1, "row", "justify-content-center"], ["class", "col-xl-3 col-lg-3 col-sm-6 col-12 wow fadeInUp", 4, "ngIf"], [1, "col-xl-3", "col-lg-3", "col-sm-6", "col-12", "wow", "fadeInUp"], [1, "form-control", 3, "ngModel", "ngModelChange", "change"], ["value", "0"], [3, "value", 4, "ngFor", "ngForOf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-control", 3, "ngModel", "ngModelChange"], ["type", " text", 1, "form-control", 3, "ngModel", "placeholder", "ngModelChange"], [1, "col-xl-3", "col-lg-3", "col-sm-6", "col-12", "calendar-icon-date", "fadeInUp"], ["type", "text", "bsDatepicker", "", 1, "form-control", 3, "placeholder", "ngModel", "bsConfig", "minDate", "ngModelChange"], ["FromDate", "bsDatepicker"], [1, "fas", "fa-calendar-alt", 3, "click"], ["ToDate", "bsDatepicker"], [1, "input-group-addon"], [1, "glyphicon", "glyphicon-calendar"], [1, "col-lg-2", "col-sm-6", "col-12"], [1, "btn", "btn-success", "filter-btn", "d-block", "w-100", 2, "border", "none", 3, "click"], [1, "fas", "fa-search", "mr-2"], [1, "btn", "btn-danger", "filter-btn", "d-block", "w-100", 2, "border", "none", 3, "click"], [1, "fas", "fa-redo-alt", "mr-2"], [1, "order-list"], [1, "row"], [1, "col-xl-12"], [1, "title", "text-center"], ["src", "assets/images/document_Icon.png", 1, "img-fluid", 2, "max-width", "45px", 3, "title", "alt"], [1, "row", "mb-5", "scheme_search"], [1, "input-group", "col-xl-5", "m-auto"], ["type", "search", "aria-label", "Search", 1, "form-control", 3, "ngModel", "placeholder", "ngModelChange"], [1, "input-group-append"], [1, "btn", 3, "click"], [1, "fas", "fa-search"], [4, "ngIf"], ["class", "col-lg-12", 4, "ngIf"], [3, "value"], [3, "ngValue"], [1, "table-responsive"], [1, "table", "table-striped", "table-bordered", "table-new-design"], ["width", "80"], [1, "badge", "badge-info"], [1, "text-orange"], [4, "ngIf", "ngIfElse"], ["elseHeader", ""], [2, "width", "250px"], ["class", "hovercolor", 4, "ngFor", "ngForOf"], [1, "new-pagination-outer"], ["name", "example_length", "aria-controls", "example", "class", "form-control-sm", "style", "width:70px;", 3, "change", 4, "ngIf"], ["autoHide", "true", 1, "w-100", "text-center", "mt-4", 3, "previousLabel", "nextLabel", "pageChange"], [1, "hovercolor"], ["blankTypeName", ""], ["blankSTypeName", ""], ["class", "badge badge-info", 4, "ngIf"], [1, "d-flex", "align-items-center"], ["class", "image-list", 4, "ngIf"], ["title", "Document Image", "target", "_blank", "class", "text-info mr-2", 3, "href", 4, "ngIf"], ["title", "Document Url", "target", "_blank", "class", "text-primary mr-2", 3, "href", 4, "ngIf"], ["title", "detail", 1, "btn", "btn-dark", "px-2", "py-1", 2, "font-size", "100%", 3, "routerLink"], [1, "image-list"], [4, "ngFor", "ngForOf"], ["class", "", 4, "ngIf"], [1, ""], ["target", "_blank", 1, "text-danger", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "30", "height", "30", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-file-earmark-pdf"], ["d", "M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z"], ["d", "M4.603 14.087a.81.81 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.68 7.68 0 0 1 1.482-.645 19.697 19.697 0 0 0 1.062-2.227 7.269 7.269 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a10.954 10.954 0 0 0 .98 1.686 5.753 5.753 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.856.856 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.712 5.712 0 0 1-.911-.95 11.651 11.651 0 0 0-1.997.406 11.307 11.307 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.793.793 0 0 1-.58.029zm1.379-1.901c-.166.076-.32.156-.459.238-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361.01.022.02.036.026.044a.266.266 0 0 0 .035-.012c.137-.056.355-.235.635-.572a8.18 8.18 0 0 0 .45-.606zm1.64-1.33a12.71 12.71 0 0 1 1.01-.193 11.744 11.744 0 0 1-.51-.858 20.801 20.801 0 0 1-.5 1.05zm2.446.45c.15.163.296.3.435.41.24.19.407.253.498.256a.107.107 0 0 0 .07-.015.307.307 0 0 0 .094-.125.436.436 0 0 0 .059-.2.095.095 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a3.876 3.876 0 0 0-.612-.053zM8.078 7.8a6.7 6.7 0 0 0 .2-.828c.031-.188.043-.343.038-.465a.613.613 0 0 0-.032-.198.517.517 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822.024.111.054.227.09.346z"], ["title", "Document Image", "target", "_blank", 1, "text-info", "mr-2", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "30", "height", "30", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-images"], ["d", "M4.502 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"], ["d", "M14.002 13a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2V5A2 2 0 0 1 2 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v8a2 2 0 0 1-1.998 2zM14 2H4a1 1 0 0 0-1 1h9.002a2 2 0 0 1 2 2v7A1 1 0 0 0 15 11V3a1 1 0 0 0-1-1zM2.002 4a1 1 0 0 0-1 1v8l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094l1.777 1.947V5a1 1 0 0 0-1-1h-10z"], ["title", "Document Url", "target", "_blank", 1, "text-primary", "mr-2", 3, "href"], ["xmlns", "http://www.w3.org/2000/svg", "width", "30", "height", "30", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-globe2"], ["d", "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855-.143.268-.276.56-.395.872.705.157 1.472.257 2.282.287V1.077zM4.249 3.539c.142-.384.304-.744.481-1.078a6.7 6.7 0 0 1 .597-.933A7.01 7.01 0 0 0 3.051 3.05c.362.184.763.349 1.198.49zM3.509 7.5c.036-1.07.188-2.087.436-3.008a9.124 9.124 0 0 1-1.565-.667A6.964 6.964 0 0 0 1.018 7.5h2.49zm1.4-2.741a12.344 12.344 0 0 0-.4 2.741H7.5V5.091c-.91-.03-1.783-.145-2.591-.332zM8.5 5.09V7.5h2.99a12.342 12.342 0 0 0-.399-2.741c-.808.187-1.681.301-2.591.332zM4.51 8.5c.035.987.176 1.914.399 2.741A13.612 13.612 0 0 1 7.5 10.91V8.5H4.51zm3.99 0v2.409c.91.03 1.783.145 2.591.332.223-.827.364-1.754.4-2.741H8.5zm-3.282 3.696c.12.312.252.604.395.872.552 1.035 1.218 1.65 1.887 1.855V11.91c-.81.03-1.577.13-2.282.287zm.11 2.276a6.696 6.696 0 0 1-.598-.933 8.853 8.853 0 0 1-.481-1.079 8.38 8.38 0 0 0-1.198.49 7.01 7.01 0 0 0 2.276 1.522zm-1.383-2.964A13.36 13.36 0 0 1 3.508 8.5h-2.49a6.963 6.963 0 0 0 1.362 3.675c.47-.258.995-.482 1.565-.667zm6.728 2.964a7.009 7.009 0 0 0 2.275-1.521 8.376 8.376 0 0 0-1.197-.49 8.853 8.853 0 0 1-.481 1.078 6.688 6.688 0 0 1-.597.933zM8.5 11.909v3.014c.67-.204 1.335-.82 1.887-1.855.143-.268.276-.56.395-.872A12.63 12.63 0 0 0 8.5 11.91zm3.555-.401c.57.185 1.095.409 1.565.667A6.963 6.963 0 0 0 14.982 8.5h-2.49a13.36 13.36 0 0 1-.437 3.008zM14.982 7.5a6.963 6.963 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008h2.49zM11.27 2.461c.177.334.339.694.482 1.078a8.368 8.368 0 0 0 1.196-.49 7.01 7.01 0 0 0-2.275-1.52c.218.283.418.597.597.932zm-.488 1.343a7.765 7.765 0 0 0-.395-.872C9.835 1.897 9.17 1.282 8.5 1.077V4.09c.81-.03 1.577-.13 2.282-.287z"], ["name", "example_length", "aria-controls", "example", 1, "form-control-sm", 2, "width", "70px", 3, "change"], ["selected", "", "value", "10"], ["value", "25"], ["value", "50"], ["value", "100"], [1, "col-lg-12"], [1, "text-center"]],
template: function AdmDeptLatestOrdersComponent_Template(rf, ctx) {
if (rf & 1) {
var _r4111 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵgetCurrentView */
"bc"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](0, "nav", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](1, "ol", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](5, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](6, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](8, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](9, "section", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](13, AdmDeptLatestOrdersComponent_div_13_Template, 9, 8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](14, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](15, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](17, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](18, "select", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_select_ngModelChange_18_listener($event) {
return ctx.model.Type = $event;
})("change", function AdmDeptLatestOrdersComponent_Template_select_change_18_listener() {
return ctx.GetSubType();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](19, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](21, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](22, AdmDeptLatestOrdersComponent_option_22_Template, 2, 2, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](23, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](24, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](26, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](27, "select", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_select_ngModelChange_27_listener($event) {
return ctx.model.SubTypeCode = $event;
})("change", function AdmDeptLatestOrdersComponent_Template_select_change_27_listener() {
return ctx.GetLookupList();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](28, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](30, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](31, AdmDeptLatestOrdersComponent_option_31_Template, 2, 2, "option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](32, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](33, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](34);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](35, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](36, "select", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_select_ngModelChange_36_listener($event) {
return ctx.model.LookupCode = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](37, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](38);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](39, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](40, AdmDeptLatestOrdersComponent_option_40_Template, 2, 2, "option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](41, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](42, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](43);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](44, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](45, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_input_ngModelChange_45_listener($event) {
return ctx.model.OrderNo = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](46, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](47, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](48, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](49);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](50, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](51, "select", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_select_ngModelChange_51_listener($event) {
return ctx.model.BeneficiaryCategory = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](52, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](53);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](54, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](55, AdmDeptLatestOrdersComponent_option_55_Template, 2, 2, "option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](56, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](57, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](58);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](59, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](60, "input", 18, 19);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_input_ngModelChange_60_listener($event) {
return ctx.model.FromDate = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](62, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](63, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function AdmDeptLatestOrdersComponent_Template_i_click_63_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r4111);
var _r4057 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](61);
return _r4057.toggle();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](64, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](65, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](66);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](67, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](68, "input", 18, 21);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_input_ngModelChange_68_listener($event) {
return ctx.model.ToDate = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](70, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](71, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function AdmDeptLatestOrdersComponent_Template_i_click_71_listener() {
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵrestoreView */
"Mc"](_r4111);
var _r4058 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](69);
return _r4058.toggle();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](72, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](73, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](74, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](75, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](76, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](77, "\xA0");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](78, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function AdmDeptLatestOrdersComponent_Template_button_click_78_listener() {
ctx.indexModel.Page = 1;
return ctx.saveFilterAndGet();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](79, "i", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](80);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](81, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](82, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](83, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](84, "\xA0");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](85, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function AdmDeptLatestOrdersComponent_Template_button_click_85_listener() {
return ctx.reset();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](86, "i", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](87);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](88, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](89, "section", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](90, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](91, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](92, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](93, "h1", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](94, "img", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](95, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](96, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtext */
"Vc"](97);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](98, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](99, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](100, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](101, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("ngModelChange", function AdmDeptLatestOrdersComponent_Template_input_ngModelChange_101_listener($event) {
return ctx.model.Search = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipe */
"nc"](102, "translate");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](103, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementStart */
"ac"](104, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵlistener */
"ic"]("click", function AdmDeptLatestOrdersComponent_Template_button_click_104_listener() {
ctx.indexModel.Page = 1;
return ctx.saveFilterAndGet();
});
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelement */
"Wb"](105, "i", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](106, AdmDeptLatestOrdersComponent_ng_container_106_Template, 41, 34, "ng-container", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtemplate */
"Tc"](107, AdmDeptLatestOrdersComponent_div_107_Template, 4, 3, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵelementEnd */
"Zb"]();
}
if (rf & 2) {
var _r4057 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](61);
var _r4058 = _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵreference */
"Kc"](69);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("routerLink", ctx.commonService.GetHomePageUrl());
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](5, 44, "Home_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](8, 46, "AdminDeptUpdate_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", false);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](17, 48, "Type_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.Type);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](21, 50, "Type_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.dDLList == null ? null : ctx.dDLList.ddlOrderType);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](26, 52, "SubType_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.SubTypeCode);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](30, 54, "SubType_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.ddlOrderSubType);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](35, 56, "LookupType_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.LookupCode);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](39, 58, "LookupType_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.lookupList);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](44, 60, "OrderCircularNotificationPolicyNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](46, 62, "OrderCircularNotificationPolicyNo_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.OrderNo);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](50, 64, "BeneficiaryCategory_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.BeneficiaryCategory);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"]("--", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](54, 66, "BeneficiaryCategory_txt"), "--");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngForOf", ctx.dDLList == null ? null : ctx.dDLList.ddlBeneficiaryCategory);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"]("", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](59, 68, "FromDate_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](62, 70, "FromDate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.FromDate)("bsConfig", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpureFunction1 */
"Ec"](88, _c0, ctx.DatePickerFormat))("minDate", ctx.minimumDate);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵattribute */
"Ib"]("aria-expanded", _r4057.isOpen);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate */
"Wc"](_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](67, 72, "ToDate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](70, 74, "ToDate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.ToDate)("bsConfig", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpureFunction1 */
"Ec"](90, _c0, ctx.DatePickerFormat))("minDate", ctx.model.FromDate ? ctx.model.FromDate : ctx.minimumDate);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵattribute */
"Ib"]("aria-expanded", _r4058.isOpen);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](81, 76, "Search_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](88, 78, "Reset_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](95, 80, "AdminDeptUpdate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](96, 82, "AdminDeptUpdate_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵtextInterpolate1 */
"Xc"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](98, 84, "AdminDeptUpdate_txt"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpropertyInterpolate */
"uc"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵpipeBind1 */
"oc"](102, 86, "Search_txt"));
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngModel", ctx.model.Search);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", (ctx.orderPublicPortal == null ? null : ctx.orderPublicPortal.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵadvance */
"Hb"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_5__[
/* ɵɵproperty */
"tc"]("ngIf", ctx.orderPublicPortal.length == 0 && !ctx.IsLoading);
}
},
directives: [_angular_router__WEBPACK_IMPORTED_MODULE_6__[
/* RouterLinkWithHref */
"d"], _angular_common__WEBPACK_IMPORTED_MODULE_12__[
/* NgIf */
"n"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* SelectControlValueAccessor */
"u"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* NgControlStatus */
"m"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* NgModel */
"p"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* NgSelectOption */
"q"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* ɵangular_packages_forms_forms_x */
"w"], _angular_common__WEBPACK_IMPORTED_MODULE_12__[
/* NgForOf */
"m"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__[
/* DefaultValueAccessor */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_14__[
/* BsDatepickerInputDirective */
"b"], ngx_bootstrap_datepicker__WEBPACK_IMPORTED_MODULE_14__[
/* BsDatepickerDirective */
"a"], ngx_pagination__WEBPACK_IMPORTED_MODULE_15__[
/* PaginationControlsComponent */
"c"]],
pipes: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__[
/* TranslatePipe */
"c"], ngx_pagination__WEBPACK_IMPORTED_MODULE_15__[
/* PaginatePipe */
"b"], _angular_common__WEBPACK_IMPORTED_MODULE_12__[
/* DatePipe */
"e"]],
styles: [""]
});
return AdmDeptLatestOrdersComponent;
}();
/***/
},
/***/
"fECr":
/***/
function fECr(module, __webpack_exports__, __webpack_require__) {
"use strict"; // EXTERNAL MODULE: ./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js + 4 modules
var core = __webpack_require__("fXoL"); // CONCATENATED MODULE: ./src/app/Shared/Model/cmprofile-view-model.ts
var CMprofileViewModel =
/*#__PURE__*/
_createClass2(function CMprofileViewModel() {
_classCallCheck(this, CMprofileViewModel);
}); // EXTERNAL MODULE: ./src/app/Shared/Model/dpt-district-website.model.ts
var dpt_district_website_model = __webpack_require__("ylkv"); // EXTERNAL MODULE: ./src/app/nav-bar/nav-bar.component.ts
var nav_bar_component = __webpack_require__("5hVl"); // EXTERNAL MODULE: ./src/app/Shared/Model/department-view-model.model.ts
var department_view_model_model = __webpack_require__("MZWM"); // EXTERNAL MODULE: ./src/app/Shared/Enum/url.enum.ts
var url_enum = __webpack_require__("AeFW"); // EXTERNAL MODULE: ./src/app/Shared/Enum/department.enum.ts
var department_enum = __webpack_require__("81W+"); // EXTERNAL MODULE: ./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js + 3 modules
var ngx_translate_core = __webpack_require__("sYmb"); // EXTERNAL MODULE: ./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js
var platform_browser = __webpack_require__("jhN1"); // EXTERNAL MODULE: ./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js + 17 modules
var fesm2015_router = __webpack_require__("tyNb"); // EXTERNAL MODULE: ./src/app/Shared/Service/common.service.ts
var common_service = __webpack_require__("LYBR"); // EXTERNAL MODULE: ./src/app/Shared/Model/app-setting.ts
var app_setting = __webpack_require__("GAWG"); // EXTERNAL MODULE: ./src/app/Shared/Model/dictionary.ts
var dictionary = __webpack_require__("ADQb"); // EXTERNAL MODULE: ./src/app/Shared/Service/base.service.ts
var base_service = __webpack_require__("MLVi"); // CONCATENATED MODULE: ./src/app/Shared/Service/chief-mnister-profile.service.ts
var chief_mnister_profile_service_ChiefMnisterProfileService =
/*@__PURE__*/
function () {
var ChiefMnisterProfileService =
/*#__PURE__*/
function () {
function ChiefMnisterProfileService(_baseService) {
_classCallCheck(this, ChiefMnisterProfileService);
this._baseService = _baseService;
}
return _createClass2(ChiefMnisterProfileService, [{
key: "GetCMProfileDetail",
value: function GetCMProfileDetail() {
var param = new dictionary["a"
/* Dictionary */
]();
param.Add("isbase64File", false);
return this._baseService.get(app_setting["a"
/* AppSetting */
].GetCMProfileDetailurl, param);
}
}]);
}();
ChiefMnisterProfileService.ɵfac = function ChiefMnisterProfileService_Factory(t) {
return new (t || ChiefMnisterProfileService)(core["ec"
/* ɵɵinject */
](base_service["a"
/* BaseService */
]));
};
ChiefMnisterProfileService.ɵprov = core["Rb"
/* ɵɵdefineInjectable */
]({
token: ChiefMnisterProfileService,
factory: ChiefMnisterProfileService.ɵfac,
providedIn: 'root'
});
return ChiefMnisterProfileService;
}(); // EXTERNAL MODULE: ./src/app/Shared/Service/department.service.ts
var department_service = __webpack_require__("6mOv"); // EXTERNAL MODULE: ./src/app/Shared/Service/department-profile.service.ts + 1 modules
var department_profile_service = __webpack_require__("56/0"); // EXTERNAL MODULE: ./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js
var common = __webpack_require__("ofXK"); // EXTERNAL MODULE: ./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js
var fesm2015_forms = __webpack_require__("3Pt+"); // CONCATENATED MODULE: ./src/app/header/header.component.ts
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return header_component_HeaderComponent;
});
function HeaderComponent_ng_container_46_a_5_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 36);
core["Wb"
/* ɵɵelement */
](1, "img", 37);
core["nc"
/* ɵɵpipe */
](2, "translate");
core["nc"
/* ɵɵpipe */
](3, "translate");
core["ac"
/* ɵɵelementStart */
](4, "div");
core["ac"
/* ɵɵelementStart */
](5, "div", 38);
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](7, "div", 39);
core["Vc"
/* ɵɵtext */
](8);
core["nc"
/* ɵɵpipe */
](9, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4626 = core["mc"
/* ɵɵnextContext */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("routerLink", ctx_r4626._commonService.GetHomePageUrl());
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", core["oc"
/* ɵɵpipeBind1 */
](2, 5, "Govtagline_txt"));
core["uc"
/* ɵɵpropertyInterpolate */
]("title", core["oc"
/* ɵɵpipeBind1 */
](3, 7, "Govtagline_txt"));
core["Hb"
/* ɵɵadvance */
](5);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4626.translate.currentLang == "en" ? ctx_r4626.DepartmentData == null ? null : ctx_r4626.DepartmentData.DisplayName : ctx_r4626.DepartmentData == null ? null : ctx_r4626.DepartmentData.DisplayNameHindi, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Wc"
/* ɵɵtextInterpolate */
](core["oc"
/* ɵɵpipeBind1 */
](9, 9, "Govtagline_txt"));
}
}
function HeaderComponent_ng_container_46_a_6_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 36);
core["Wb"
/* ɵɵelement */
](1, "img", 40);
core["ac"
/* ɵɵelementStart */
](2, "div", 38);
core["Vc"
/* ɵɵtext */
](3);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4627 = core["mc"
/* ɵɵnextContext */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("routerLink", ctx_r4627._commonService.GetHomePageUrl());
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4627.DepartmentData == null ? null : ctx_r4627.DepartmentData.LogoUrl, core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4627.translate.currentLang == "en" ? ctx_r4627.DepartmentData == null ? null : ctx_r4627.DepartmentData.DisplayName : ctx_r4627.DepartmentData == null ? null : ctx_r4627.DepartmentData.DisplayNameHindi, " ");
}
}
var _c0 = function _c0(a0) {
return {
"zoom-in-zoom-out": a0
};
};
function HeaderComponent_ng_container_46_div_7_a_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 44);
core["Wb"
/* ɵɵelement */
](1, "img", 45);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4634 = core["mc"
/* ɵɵnextContext */
](3);
core["tc"
/* ɵɵproperty */
]("href", ctx_r4634.DepartmentData.HeaderIconURL, core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](3, _c0, ctx_r4634.DepartmentData.IsHighlightHeaderIcon))("src", ctx_r4634.sanitizeImageUrl(ctx_r4634.DepartmentData.HeaderIconPath), core["Pc"
/* ɵɵsanitizeUrl */
]);
}
}
function HeaderComponent_ng_container_46_div_7_a_2_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 46);
core["Wb"
/* ɵɵelement */
](1, "img", 45);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4635 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](2, _c0, ctx_r4635.DepartmentData.IsHighlightHeaderIcon))("src", ctx_r4635.sanitizeImageUrl(ctx_r4635.DepartmentData.HeaderIconPath), core["Pc"
/* ɵɵsanitizeUrl */
]);
}
}
function HeaderComponent_ng_container_46_div_7_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 41);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_ng_container_46_div_7_a_1_Template, 2, 5, "a", 42);
core["Tc"
/* ɵɵtemplate */
](2, HeaderComponent_ng_container_46_div_7_a_2_Template, 2, 4, "a", 43);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4628 = core["mc"
/* ɵɵnextContext */
](2);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4628.DepartmentData.HeaderIconURL);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", !ctx_r4628.DepartmentData.HeaderIconURL);
}
}
function HeaderComponent_ng_container_46_div_8_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 47);
core["ac"
/* ɵɵelementStart */
](1, "a", 48);
core["lc"
/* ɵɵnamespaceSVG */
]();
core["ac"
/* ɵɵelementStart */
](2, "svg", 49);
core["Wb"
/* ɵɵelement */
](3, "path", 50);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["kc"
/* ɵɵnamespaceHTML */
]();
core["ac"
/* ɵɵelementStart */
](4, "a", 51);
core["Wb"
/* ɵɵelement */
](5, "img", 52);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](6, "a", 53);
core["Wb"
/* ɵɵelement */
](7, "i", 54);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
}
function HeaderComponent_ng_container_46_div_9_a_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 44);
core["Wb"
/* ɵɵelement */
](1, "img", 45);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4636 = core["mc"
/* ɵɵnextContext */
](3);
core["tc"
/* ɵɵproperty */
]("href", ctx_r4636.model.GlobalIconUrl, core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](3, _c0, ctx_r4636.model.IsHighlightGlobalIcon))("src", ctx_r4636.sanitizeImageUrl(ctx_r4636.model.GlobalIconImage), core["Pc"
/* ɵɵsanitizeUrl */
]);
}
}
function HeaderComponent_ng_container_46_div_9_a_2_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 46);
core["Wb"
/* ɵɵelement */
](1, "img", 45);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4637 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](2, _c0, ctx_r4637.model.IsHighlightGlobalIcon))("src", ctx_r4637.sanitizeImageUrl(ctx_r4637.model.GlobalIconImage), core["Pc"
/* ɵɵsanitizeUrl */
]);
}
}
function HeaderComponent_ng_container_46_div_9_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 55);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_ng_container_46_div_9_a_1_Template, 2, 5, "a", 42);
core["Tc"
/* ɵɵtemplate */
](2, HeaderComponent_ng_container_46_div_9_a_2_Template, 2, 4, "a", 43);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4630 = core["mc"
/* ɵɵnextContext */
](2);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4630.model.GlobalIconUrl);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", !ctx_r4630.model.GlobalIconUrl);
}
}
function HeaderComponent_ng_container_46_div_10_a_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 44);
core["Wb"
/* ɵɵelement */
](1, "img", 45);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4638 = core["mc"
/* ɵɵnextContext */
](3);
core["tc"
/* ɵɵproperty */
]("href", ctx_r4638.model.GlobalStickerUrl, core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](3, _c0, ctx_r4638.model.IsHighlightGlobalSticker))("src", ctx_r4638.sanitizeImageUrl(ctx_r4638.model.GlobalStickerImage), core["Pc"
/* ɵɵsanitizeUrl */
]);
}
}
function HeaderComponent_ng_container_46_div_10_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 55);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_ng_container_46_div_10_a_1_Template, 2, 5, "a", 42);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4631 = core["mc"
/* ɵɵnextContext */
](2);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4631.model.GlobalStickerUrl);
}
}
function HeaderComponent_ng_container_46_div_11_a_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 36);
core["Wb"
/* ɵɵelement */
](1, "img", 56);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4639 = core["mc"
/* ɵɵnextContext */
](3);
core["uc"
/* ɵɵpropertyInterpolate */
]("routerLink", ctx_r4639._commonService.GetHomePageUrl());
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4639.DepartmentData == null ? null : ctx_r4639.DepartmentData.LogoUrl, core["Pc"
/* ɵɵsanitizeUrl */
]);
}
}
function HeaderComponent_ng_container_46_div_11_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 55);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_ng_container_46_div_11_a_1_Template, 2, 2, "a", 31);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4632 = core["mc"
/* ɵɵnextContext */
](2);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4632.DepartmentData.LogoUrl);
}
}
function HeaderComponent_ng_container_46_div_12_a_1_Template(rf, ctx) {
if (rf & 1) {
var _r4644 = core["bc"
/* ɵɵgetCurrentView */
]();
core["ac"
/* ɵɵelementStart */
](0, "a", 60);
core["ac"
/* ɵɵelementStart */
](1, "img", 61);
core["ic"
/* ɵɵlistener */
]("error", function HeaderComponent_ng_container_46_div_12_a_1_Template_img_error_1_listener($event) {
core["Mc"
/* ɵɵrestoreView */
](_r4644);
var ctx_r4643 = core["mc"
/* ɵɵnextContext */
](3);
return ctx_r4643._commonService.onImageError($event, "assets/images/loader.gif");
});
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](2, "div", 62);
core["ac"
/* ɵɵelementStart */
](3, "p", 63);
core["Vc"
/* ɵɵtext */
](4);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](5, "small");
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4640 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4640.translate.currentLang == "hi" ? ctx_r4640.model.NameHindi : ctx_r4640.model.Name);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4640.translate.currentLang == "hi" ? ctx_r4640.model.NameHindi : ctx_r4640.model.Name);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4640.sanitizeImageUrl(ctx_r4640.model.PhotoPath), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4640.translate.currentLang == "hi" ? ctx_r4640.model.NameHindi : ctx_r4640.model.Name, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4640.translate.currentLang == "hi" ? ctx_r4640.model.DesignationNameHindi : ctx_r4640.model.DesignationName, " ");
}
}
function HeaderComponent_ng_container_46_div_12_div_2_a_1_Template(rf, ctx) {
if (rf & 1) {
var _r4647 = core["bc"
/* ɵɵgetCurrentView */
]();
core["ac"
/* ɵɵelementStart */
](0, "a", 66);
core["ac"
/* ɵɵelementStart */
](1, "img", 67);
core["ic"
/* ɵɵlistener */
]("error", function HeaderComponent_ng_container_46_div_12_div_2_a_1_Template_img_error_1_listener($event) {
core["Mc"
/* ɵɵrestoreView */
](_r4647);
var ctx_r4646 = core["mc"
/* ɵɵnextContext */
](4);
return ctx_r4646._commonService.onImageError($event, "assets/images/loader.gif");
});
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](2, "div", 62);
core["ac"
/* ɵɵelementStart */
](3, "div", 68);
core["Vc"
/* ɵɵtext */
](4);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](5, "p", 69);
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4645 = core["mc"
/* ɵɵnextContext */
](4);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4645.translate.currentLang == "en" ? ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.OfficerName : ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.OfficerNameInHindi);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4645.translate.currentLang == "en" ? ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.OfficerName : ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.OfficerNameInHindi);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4645.sanitizeImageUrl(ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.ImagePath), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4645.translate.currentLang == "en" ? ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.OfficerName : ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.OfficerNameInHindi, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4645.translate.currentLang == "en" ? ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.DesignationName : ctx_r4645.prabhariMantri == null ? null : ctx_r4645.prabhariMantri.DesignationNameHindi, " ");
}
}
function HeaderComponent_ng_container_46_div_12_div_2_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 64);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_ng_container_46_div_12_div_2_a_1_Template, 7, 5, "a", 65);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4641 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4641.prabhariMantri == null ? null : ctx_r4641.prabhariMantri.ImagePath);
}
}
function HeaderComponent_ng_container_46_div_12_div_3_a_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 66);
core["Wb"
/* ɵɵelement */
](1, "img", 70);
core["nc"
/* ɵɵpipe */
](2, "translate");
core["nc"
/* ɵɵpipe */
](3, "translate");
core["ac"
/* ɵɵelementStart */
](4, "div", 62);
core["ac"
/* ɵɵelementStart */
](5, "div", 68);
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](7, "p", 69);
core["Vc"
/* ɵɵtext */
](8);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4648 = core["mc"
/* ɵɵnextContext */
](4);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", core["oc"
/* ɵɵpipeBind1 */
](2, 5, "CabinetMinister_txt"));
core["uc"
/* ɵɵpropertyInterpolate */
]("title", core["oc"
/* ɵɵpipeBind1 */
](3, 7, "CabinetMinister_txt"));
core["tc"
/* ɵɵproperty */
]("src", ctx_r4648.sanitizeImageUrl(ctx_r4648.DepartmentData == null ? null : ctx_r4648.DepartmentData.CabinetMinisterPhoto), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](5);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4648.translate.currentLang == "en" ? ctx_r4648.DepartmentData == null ? null : ctx_r4648.DepartmentData.CabinetMinisterNameEnglish : ctx_r4648.DepartmentData == null ? null : ctx_r4648.DepartmentData.CabinetMinisterNameHindi, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4648.translate.currentLang === "hi" ? ctx_r4648.DepartmentData == null ? null : ctx_r4648.DepartmentData.DesignationCabinetMinisterNameHindi : ctx_r4648.DepartmentData == null ? null : ctx_r4648.DepartmentData.DesignationCabinetMinisterName, " ");
}
}
function HeaderComponent_ng_container_46_div_12_div_3_a_2_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 66);
core["Wb"
/* ɵɵelement */
](1, "img", 70);
core["nc"
/* ɵɵpipe */
](2, "translate");
core["nc"
/* ɵɵpipe */
](3, "translate");
core["ac"
/* ɵɵelementStart */
](4, "div", 62);
core["ac"
/* ɵɵelementStart */
](5, "p", 71);
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](7, "small", 72);
core["Vc"
/* ɵɵtext */
](8);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4649 = core["mc"
/* ɵɵnextContext */
](4);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", core["oc"
/* ɵɵpipeBind1 */
](2, 5, "StateMinister_txt"));
core["uc"
/* ɵɵpropertyInterpolate */
]("title", core["oc"
/* ɵɵpipeBind1 */
](3, 7, "StateMinister_txt"));
core["tc"
/* ɵɵproperty */
]("src", ctx_r4649.sanitizeImageUrl(ctx_r4649.DepartmentData == null ? null : ctx_r4649.DepartmentData.StateMinisterPhoto), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](5);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4649.translate.currentLang == "en" ? ctx_r4649.DepartmentData == null ? null : ctx_r4649.DepartmentData.StateMinisterNameEnglish : ctx_r4649.DepartmentData == null ? null : ctx_r4649.DepartmentData.StateMinisterNameHindi, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4649.translate.currentLang === "hi" ? ctx_r4649.DepartmentData == null ? null : ctx_r4649.DepartmentData.DesignationStateMinisterNameHindi : ctx_r4649.DepartmentData == null ? null : ctx_r4649.DepartmentData.DesignationStateMinisterName, " ");
}
}
function HeaderComponent_ng_container_46_div_12_div_3_a_3_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 66);
core["Wb"
/* ɵɵelement */
](1, "img", 73);
core["ac"
/* ɵɵelementStart */
](2, "div", 62);
core["ac"
/* ɵɵelementStart */
](3, "p", 71);
core["Vc"
/* ɵɵtext */
](4);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](5, "small", 69);
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4650 = core["mc"
/* ɵɵnextContext */
](4);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4650.translate.currentLang == "hi" ? "\u0905\u0927\u094D\u092F\u0915\u094D\u0937" : "Chairman");
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4650.translate.currentLang == "hi" ? "\u0905\u0927\u094D\u092F\u0915\u094D\u0937" : "Chairman");
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4650.translate.currentLang == "hi" ? "\u0936\u094D\u0930\u0940 \u0938\u0940. \u0906\u0930. \u091A\u094C\u0927\u0930\u0940" : "Shri C. R. Chaudhary", " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4650.translate.currentLang == "hi" ? "\u0905\u0927\u094D\u092F\u0915\u094D\u0937" : "Chairman", " ");
}
}
function HeaderComponent_ng_container_46_div_12_div_3_a_4_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 66);
core["Wb"
/* ɵɵelement */
](1, "img", 74);
core["ac"
/* ɵɵelementStart */
](2, "div", 62);
core["ac"
/* ɵɵelementStart */
](3, "p", 71);
core["Vc"
/* ɵɵtext */
](4);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](5, "small", 69);
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4651 = core["mc"
/* ɵɵnextContext */
](4);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4651.translate.currentLang == "hi" ? "\u092E\u093E\u0928\u0928\u0940\u092F \u0909\u092A. \u092E\u0941\u0916\u094D\u092F\u092E\u0902\u0924\u094D\u0930\u0940 \u090F\u0935\u0902 \u0924\u0915\u0928\u0940\u0915\u0940 \u0936\u093F\u0915\u094D\u0937\u093E \u092E\u0902\u0924\u094D\u0930\u0940" : "Honble Dy. Chief Minister & Minister of Technical Education");
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4651.translate.currentLang == "hi" ? "\u092E\u093E\u0928\u0928\u0940\u092F \u0909\u092A. \u092E\u0941\u0916\u094D\u092F\u092E\u0902\u0924\u094D\u0930\u0940 \u090F\u0935\u0902 \u0924\u0915\u0928\u0940\u0915\u0940 \u0936\u093F\u0915\u094D\u0937\u093E \u092E\u0902\u0924\u094D\u0930\u0940" : "Honble Dy. Chief Minister & Minister of Technical Education");
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4651.translate.currentLang == "hi" ? "\u0921\u0949 \u092A\u094D\u0930\u0947\u092E \u091A\u0902\u0926 \u092C\u0948\u0930\u0935\u093E" : "Dr Prem Chand Bairwa", " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4651.translate.currentLang == "hi" ? "\u092E\u093E\u0928\u0928\u0940\u092F \u0909\u092A. \u092E\u0941\u0916\u094D\u092F\u092E\u0902\u0924\u094D\u0930\u0940 \u090F\u0935\u0902 \u0924\u0915\u0928\u0940\u0915\u0940 \u0936\u093F\u0915\u094D\u0937\u093E \u092E\u0902\u0924\u094D\u0930\u0940" : "Hon'ble Dy. Chief Minister & Minister of Technical Education", " ");
}
}
function HeaderComponent_ng_container_46_div_12_div_3_a_5_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 66);
core["Wb"
/* ɵɵelement */
](1, "img", 75);
core["ac"
/* ɵɵelementStart */
](2, "div", 62);
core["ac"
/* ɵɵelementStart */
](3, "p", 71);
core["Vc"
/* ɵɵtext */
](4);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](5, "small", 69);
core["Vc"
/* ɵɵtext */
](6);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4652 = core["mc"
/* ɵɵnextContext */
](4);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4652.translate.currentLang == "hi" ? "\u092E\u093E\u0928\u0928\u0940\u092F \u0938\u0902\u0938\u094D\u0915\u0943\u0924 \u0936\u093F\u0915\u094D\u0937\u093E \u092E\u0902\u0924\u094D\u0930\u0940" : "Honble Sanskrit Education Minister");
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4652.translate.currentLang == "hi" ? "\u092E\u093E\u0928\u0928\u0940\u092F \u0938\u0902\u0938\u094D\u0915\u0943\u0924 \u0936\u093F\u0915\u094D\u0937\u093E \u092E\u0902\u0924\u094D\u0930\u0940" : "Honble Sanskrit Education Minister");
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4652.translate.currentLang == "hi" ? "\u0936\u094D\u0930\u0940 \u092E\u0926\u0928 \u0926\u093F\u0932\u093E\u0935\u0930" : "Shri Madan Dilawar", " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4652.translate.currentLang == "hi" ? "\u092E\u093E\u0928\u0928\u0940\u092F \u0938\u0902\u0938\u094D\u0915\u0943\u0924 \u0936\u093F\u0915\u094D\u0937\u093E \u092E\u0902\u0924\u094D\u0930\u0940" : "Hon'ble Sanskrit Education Minister", " ");
}
}
function HeaderComponent_ng_container_46_div_12_div_3_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 64);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_ng_container_46_div_12_div_3_a_1_Template, 9, 9, "a", 65);
core["Tc"
/* ɵɵtemplate */
](2, HeaderComponent_ng_container_46_div_12_div_3_a_2_Template, 9, 9, "a", 65);
core["Tc"
/* ɵɵtemplate */
](3, HeaderComponent_ng_container_46_div_12_div_3_a_3_Template, 7, 4, "a", 65);
core["Tc"
/* ɵɵtemplate */
](4, HeaderComponent_ng_container_46_div_12_div_3_a_4_Template, 7, 4, "a", 65);
core["Tc"
/* ɵɵtemplate */
](5, HeaderComponent_ng_container_46_div_12_div_3_a_5_Template, 7, 4, "a", 65);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4642 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4642.DepartmentData == null ? null : ctx_r4642.DepartmentData.CabinetMinisterPhoto);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4642.DepartmentData == null ? null : ctx_r4642.DepartmentData.StateMinisterPhoto);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4642.deptCode == 335);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4642.deptCode == 229);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4642.deptCode == 1859);
}
}
function HeaderComponent_ng_container_46_div_12_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 57);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_ng_container_46_div_12_a_1_Template, 7, 5, "a", 58);
core["Tc"
/* ɵɵtemplate */
](2, HeaderComponent_ng_container_46_div_12_div_2_Template, 2, 1, "div", 59);
core["Tc"
/* ɵɵtemplate */
](3, HeaderComponent_ng_container_46_div_12_div_3_Template, 6, 5, "div", 59);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4633 = core["mc"
/* ɵɵnextContext */
](2);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4633.model.PhotoPath);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4633.isDistrict);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", !ctx_r4633.isDistrict);
}
}
function HeaderComponent_ng_container_46_Template(rf, ctx) {
if (rf & 1) {
core["lc"
/* ɵɵnamespaceSVG */
]();
core["kc"
/* ɵɵnamespaceHTML */
]();
core["Yb"
/* ɵɵelementContainerStart */
](0);
core["ac"
/* ɵɵelementStart */
](1, "section", 28);
core["ac"
/* ɵɵelementStart */
](2, "div", 1);
core["ac"
/* ɵɵelementStart */
](3, "div", 29);
core["ac"
/* ɵɵelementStart */
](4, "div", 30);
core["Tc"
/* ɵɵtemplate */
](5, HeaderComponent_ng_container_46_a_5_Template, 10, 11, "a", 31);
core["Tc"
/* ɵɵtemplate */
](6, HeaderComponent_ng_container_46_a_6_Template, 4, 3, "a", 31);
core["Tc"
/* ɵɵtemplate */
](7, HeaderComponent_ng_container_46_div_7_Template, 3, 2, "div", 32);
core["Zb"
/* ɵɵelementEnd */
]();
core["Tc"
/* ɵɵtemplate */
](8, HeaderComponent_ng_container_46_div_8_Template, 8, 0, "div", 33);
core["Tc"
/* ɵɵtemplate */
](9, HeaderComponent_ng_container_46_div_9_Template, 3, 2, "div", 34);
core["Tc"
/* ɵɵtemplate */
](10, HeaderComponent_ng_container_46_div_10_Template, 2, 1, "div", 34);
core["Tc"
/* ɵɵtemplate */
](11, HeaderComponent_ng_container_46_div_11_Template, 2, 1, "div", 34);
core["Tc"
/* ɵɵtemplate */
](12, HeaderComponent_ng_container_46_div_12_Template, 4, 3, "div", 35);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Xb"
/* ɵɵelementContainerEnd */
]();
}
if (rf & 2) {
var ctx_r4624 = core["mc"
/* ɵɵnextContext */
]();
core["Hb"
/* ɵɵadvance */
](1);
core["Sc"
/* ɵɵstyleProp */
]("background", "url(" + (ctx_r4624.DepartmentData == null ? null : ctx_r4624.DepartmentData.WebsiteImage) + ")", core["Ob"
/* ɵɵdefaultStyleSanitizer */
]);
core["Hb"
/* ɵɵadvance */
](4);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4624.DepartmentData.DepartmentCode && ctx_r4624.DepartmentData.DepartmentCode != ctx_r4624.deptEnum.RISL);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4624.DepartmentData.DepartmentCode == ctx_r4624.deptEnum.RISL);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4624.DepartmentData.IsShowHeaderIcon && ctx_r4624.DepartmentData.HeaderIconPath);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4624.DepartmentData.DepartmentCode == ctx_r4624.deptEnum.Medical_Education || ctx_r4624.DepartmentData.DepartmentCode == ctx_r4624.deptEnum.RajEms);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4624.model.IsShowGlobalIcon && ctx_r4624.model.GlobalIconImage);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4624.model.IsShowGlobalSticker && ctx_r4624.model.GlobalStickerImage && ctx_r4624.DepartmentData.IsShowGlobalStickerForDepartment && ctx_r4624.websiteCode != 5);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", !ctx_r4624.model.IsShowGlobalIcon && ctx_r4624.DepartmentData.DepartmentCode != ctx_r4624.deptEnum.RISL);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", !ctx_r4624._commonService.IsCodeOfConduct() && !ctx_r4624.model.GovtInCodeOfConduct);
}
}
function HeaderComponent_section_48_a_6_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 88);
core["Wb"
/* ɵɵelement */
](1, "img", 89);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4653 = core["mc"
/* ɵɵnextContext */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("routerLink", ctx_r4653._commonService.GetHomePageUrl());
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4653.translate.currentLang == "en" ? ctx_r4653.DepartmentData == null ? null : ctx_r4653.DepartmentData.DisplayName : ctx_r4653.DepartmentData == null ? null : ctx_r4653.DepartmentData.DisplayNameHindi);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4653.translate.currentLang == "en" ? ctx_r4653.DepartmentData == null ? null : ctx_r4653.DepartmentData.DisplayName : ctx_r4653.DepartmentData == null ? null : ctx_r4653.DepartmentData.DisplayNameHindi);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4653.DepartmentData == null ? null : ctx_r4653.DepartmentData.LogoUrl, core["Pc"
/* ɵɵsanitizeUrl */
]);
}
}
function HeaderComponent_section_48_ng_container_7_a_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 92);
core["Wb"
/* ɵɵelement */
](1, "img", 93);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4656 = core["mc"
/* ɵɵnextContext */
](3);
core["tc"
/* ɵɵproperty */
]("href", ctx_r4656.DepartmentData.HeaderIconURL, core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4656.translate.currentLang == "en" ? ctx_r4656.DepartmentData == null ? null : ctx_r4656.DepartmentData.DisplayName : ctx_r4656.DepartmentData == null ? null : ctx_r4656.DepartmentData.DisplayNameHindi);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4656.translate.currentLang == "en" ? ctx_r4656.DepartmentData == null ? null : ctx_r4656.DepartmentData.DisplayName : ctx_r4656.DepartmentData == null ? null : ctx_r4656.DepartmentData.DisplayNameHindi);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4656.sanitizeImageUrl(ctx_r4656.DepartmentData.HeaderIconPath), core["Pc"
/* ɵɵsanitizeUrl */
])("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](5, _c0, ctx_r4656.DepartmentData.IsHighlightHeaderIcon));
}
}
function HeaderComponent_section_48_ng_container_7_a_2_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "a", 94);
core["Wb"
/* ɵɵelement */
](1, "img", 93);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4657 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](1);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4657.translate.currentLang == "en" ? ctx_r4657.DepartmentData == null ? null : ctx_r4657.DepartmentData.DisplayName : ctx_r4657.DepartmentData == null ? null : ctx_r4657.DepartmentData.DisplayNameHindi);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4657.translate.currentLang == "en" ? ctx_r4657.DepartmentData == null ? null : ctx_r4657.DepartmentData.DisplayName : ctx_r4657.DepartmentData == null ? null : ctx_r4657.DepartmentData.DisplayNameHindi);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4657.sanitizeImageUrl(ctx_r4657.DepartmentData.HeaderIconPath), core["Pc"
/* ɵɵsanitizeUrl */
])("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](4, _c0, ctx_r4657.DepartmentData.IsHighlightHeaderIcon));
}
}
function HeaderComponent_section_48_ng_container_7_Template(rf, ctx) {
if (rf & 1) {
core["Yb"
/* ɵɵelementContainerStart */
](0);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_section_48_ng_container_7_a_1_Template, 2, 7, "a", 90);
core["Tc"
/* ɵɵtemplate */
](2, HeaderComponent_section_48_ng_container_7_a_2_Template, 2, 6, "a", 91);
core["Xb"
/* ɵɵelementContainerEnd */
]();
}
if (rf & 2) {
var ctx_r4654 = core["mc"
/* ɵɵnextContext */
](2);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4654.DepartmentData.HeaderIconURL);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", !ctx_r4654.DepartmentData.HeaderIconURL);
}
}
function HeaderComponent_section_48_div_13_div_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 97);
core["ac"
/* ɵɵelementStart */
](1, "div", 98);
core["Wb"
/* ɵɵelement */
](2, "img", 89);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](3, "div", 99);
core["ac"
/* ɵɵelementStart */
](4, "strong");
core["Vc"
/* ɵɵtext */
](5);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](6, "p", 63);
core["Vc"
/* ɵɵtext */
](7);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4658 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4658.translate.currentLang == "en" ? ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernorNameEng : ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernorNameHindi);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4658.translate.currentLang == "en" ? ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernorNameEng : ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernorNameHindi);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4658.sanitizeImageUrl(ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernerPhotoPath), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4658.translate.currentLang == "en" ? ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernorNameEng : ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernorNameHindi, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4658.translate.currentLang == "en" ? ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernerDesignationEng : ctx_r4658.DepartmentData == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0] == null ? null : ctx_r4658.DepartmentData.GovernorDetails[0].GovernerDesignationHindi, " ");
}
}
function HeaderComponent_section_48_div_13_ng_container_2_div_1_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 97);
core["ac"
/* ɵɵelementStart */
](1, "div", 98);
core["Wb"
/* ɵɵelement */
](2, "img", 89);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](3, "div", 99);
core["ac"
/* ɵɵelementStart */
](4, "strong");
core["Vc"
/* ɵɵtext */
](5);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](6, "p", 63);
core["Vc"
/* ɵɵtext */
](7);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4665 = core["mc"
/* ɵɵnextContext */
](4);
core["Hb"
/* ɵɵadvance */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4665.translate.currentLang == "hi" ? ctx_r4665.model.NameHindi : ctx_r4665.model.Name);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4665.translate.currentLang == "hi" ? ctx_r4665.model.NameHindi : ctx_r4665.model.Name);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4665.sanitizeImageUrl(ctx_r4665.model.PhotoPath), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Wc"
/* ɵɵtextInterpolate */
](ctx_r4665.translate.currentLang == "hi" ? ctx_r4665.model.NameHindi : ctx_r4665.model.Name);
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
]("", ctx_r4665.translate.currentLang == "hi" ? ctx_r4665.model.DesignationNameHindi : ctx_r4665.model.DesignationName, " ");
}
}
function HeaderComponent_section_48_div_13_ng_container_2_Template(rf, ctx) {
if (rf & 1) {
core["Yb"
/* ɵɵelementContainerStart */
](0);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_section_48_div_13_ng_container_2_div_1_Template, 8, 5, "div", 96);
core["Xb"
/* ɵɵelementContainerEnd */
]();
}
if (rf & 2) {
var ctx_r4659 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4659.model.PhotoPath);
}
}
function HeaderComponent_section_48_div_13_div_3_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 97);
core["ac"
/* ɵɵelementStart */
](1, "div", 98);
core["Wb"
/* ɵɵelement */
](2, "img", 89);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](3, "div", 99);
core["ac"
/* ɵɵelementStart */
](4, "strong");
core["Vc"
/* ɵɵtext */
](5);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](6, "p", 63);
core["Vc"
/* ɵɵtext */
](7);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4660 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4660.translate.currentLang == "hi" ? ctx_r4660.DepartmentData.StateMinisterNameHindi : ctx_r4660.DepartmentData.StateMinisterNameEnglish);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4660.translate.currentLang == "hi" ? ctx_r4660.DepartmentData.StateMinisterNameHindi : ctx_r4660.DepartmentData.StateMinisterNameEnglish);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4660.sanitizeImageUrl(ctx_r4660.DepartmentData.StateMinisterPhoto), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Wc"
/* ɵɵtextInterpolate */
](ctx_r4660.translate.currentLang == "hi" ? ctx_r4660.DepartmentData.StateMinisterNameHindi : ctx_r4660.DepartmentData.StateMinisterNameEnglish);
core["Hb"
/* ɵɵadvance */
](2);
core["Wc"
/* ɵɵtextInterpolate */
](ctx_r4660.translate.currentLang == "hi" ? ctx_r4660.DepartmentData.StateMinisterDesignationShortNameHindi : ctx_r4660.DepartmentData.StateMinisterDesignationShortName);
}
}
function HeaderComponent_section_48_div_13_div_4_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 97);
core["ac"
/* ɵɵelementStart */
](1, "div", 98);
core["Wb"
/* ɵɵelement */
](2, "img", 89);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](3, "div", 99);
core["ac"
/* ɵɵelementStart */
](4, "strong");
core["Vc"
/* ɵɵtext */
](5);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](6, "p", 63);
core["Vc"
/* ɵɵtext */
](7);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4661 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4661.translate.currentLang == "hi" ? ctx_r4661.DepartmentData.StateMinister2NameHindi : ctx_r4661.DepartmentData.StateMinister2NameEnglish);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4661.translate.currentLang == "hi" ? ctx_r4661.DepartmentData.StateMinister2NameHindi : ctx_r4661.DepartmentData.StateMinister2NameEnglish);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4661.sanitizeImageUrl(ctx_r4661.DepartmentData.StateMinister2Photo), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Wc"
/* ɵɵtextInterpolate */
](ctx_r4661.translate.currentLang == "hi" ? ctx_r4661.DepartmentData.StateMinister2NameHindi : ctx_r4661.DepartmentData.StateMinister2NameEnglish);
core["Hb"
/* ɵɵadvance */
](2);
core["Wc"
/* ɵɵtextInterpolate */
](ctx_r4661.translate.currentLang == "hi" ? ctx_r4661.DepartmentData.StateMinister2DesignationShortNameHindi : ctx_r4661.DepartmentData.StateMinister2DesignationShortName);
}
}
function HeaderComponent_section_48_div_13_div_5_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 97);
core["ac"
/* ɵɵelementStart */
](1, "div", 98);
core["Wb"
/* ɵɵelement */
](2, "img", 89);
core["nc"
/* ɵɵpipe */
](3, "translate");
core["nc"
/* ɵɵpipe */
](4, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](5, "div", 99);
core["ac"
/* ɵɵelementStart */
](6, "strong");
core["Vc"
/* ɵɵtext */
](7);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](8, "p", 63);
core["Vc"
/* ɵɵtext */
](9);
core["nc"
/* ɵɵpipe */
](10, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4662 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", core["oc"
/* ɵɵpipeBind1 */
](3, 5, "CabinetMinister_txt"));
core["uc"
/* ɵɵpropertyInterpolate */
]("title", core["oc"
/* ɵɵpipeBind1 */
](4, 7, "CabinetMinister_txt"));
core["tc"
/* ɵɵproperty */
]("src", ctx_r4662.sanitizeImageUrl(ctx_r4662.DepartmentData == null ? null : ctx_r4662.DepartmentData.CabinetMinisterPhoto), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](5);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4662.translate.currentLang == "en" ? ctx_r4662.DepartmentData == null ? null : ctx_r4662.DepartmentData.CabinetMinisterNameEnglish : ctx_r4662.DepartmentData == null ? null : ctx_r4662.DepartmentData.CabinetMinisterNameHindi, "");
core["Hb"
/* ɵɵadvance */
](2);
core["Wc"
/* ɵɵtextInterpolate */
](core["oc"
/* ɵɵpipeBind1 */
](10, 9, "CabinetMinister_txt"));
}
}
function HeaderComponent_section_48_div_13_div_6_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 97);
core["ac"
/* ɵɵelementStart */
](1, "div", 98);
core["Wb"
/* ɵɵelement */
](2, "img", 89);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](3, "div", 99);
core["ac"
/* ɵɵelementStart */
](4, "strong");
core["Vc"
/* ɵɵtext */
](5);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](6, "p", 63);
core["Vc"
/* ɵɵtext */
](7);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4663 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4663.translate.currentLang == "en" ? ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCNameEng : ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCNameHindi);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4663.translate.currentLang == "en" ? ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCNameEng : ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCNameHindi);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4663.sanitizeImageUrl(ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VcPhotoPath), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4663.translate.currentLang == "en" ? ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCNameEng : ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCNameHindi, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4663.translate.currentLang == "en" ? ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCDesignationEng : ctx_r4663.DepartmentData == null ? null : ctx_r4663.DepartmentData.VCDesignationHindi, " ");
}
}
function HeaderComponent_section_48_div_13_div_7_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 97);
core["ac"
/* ɵɵelementStart */
](1, "div", 98);
core["Wb"
/* ɵɵelement */
](2, "img", 89);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](3, "div", 99);
core["ac"
/* ɵɵelementStart */
](4, "strong");
core["Vc"
/* ɵɵtext */
](5);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](6, "p", 63);
core["Vc"
/* ɵɵtext */
](7);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4664 = core["mc"
/* ɵɵnextContext */
](3);
core["Hb"
/* ɵɵadvance */
](2);
core["uc"
/* ɵɵpropertyInterpolate */
]("alt", ctx_r4664.translate.currentLang == "en" ? ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanNameEng : ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanNameHindi);
core["uc"
/* ɵɵpropertyInterpolate */
]("title", ctx_r4664.translate.currentLang == "en" ? ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanNameEng : ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanNameHindi);
core["tc"
/* ɵɵproperty */
]("src", ctx_r4664.sanitizeImageUrl(ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanPhotoPath), core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](3);
core["Wc"
/* ɵɵtextInterpolate */
](ctx_r4664.translate.currentLang == "en" ? ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanNameEng : ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanNameHindi);
core["Hb"
/* ɵɵadvance */
](2);
core["Wc"
/* ɵɵtextInterpolate */
](ctx_r4664.translate.currentLang == "en" ? ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanDesignationEng : ctx_r4664.DepartmentData == null ? null : ctx_r4664.DepartmentData.ChairmanDesignationHindi);
}
}
function HeaderComponent_section_48_div_13_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "div", 95);
core["Tc"
/* ɵɵtemplate */
](1, HeaderComponent_section_48_div_13_div_1_Template, 8, 5, "div", 96);
core["Tc"
/* ɵɵtemplate */
](2, HeaderComponent_section_48_div_13_ng_container_2_Template, 2, 1, "ng-container", 26);
core["Tc"
/* ɵɵtemplate */
](3, HeaderComponent_section_48_div_13_div_3_Template, 8, 5, "div", 96);
core["Tc"
/* ɵɵtemplate */
](4, HeaderComponent_section_48_div_13_div_4_Template, 8, 5, "div", 96);
core["Tc"
/* ɵɵtemplate */
](5, HeaderComponent_section_48_div_13_div_5_Template, 11, 11, "div", 96);
core["Tc"
/* ɵɵtemplate */
](6, HeaderComponent_section_48_div_13_div_6_Template, 8, 5, "div", 96);
core["Tc"
/* ɵɵtemplate */
](7, HeaderComponent_section_48_div_13_div_7_Template, 8, 5, "div", 96);
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4655 = core["mc"
/* ɵɵnextContext */
](2);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4655.DepartmentData.IsGovernorRequired);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4655.websiteCode != 1882);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4655.DepartmentData.StateMinisterPhoto);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4655.DepartmentData.StateMinister2Photo);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4655.DepartmentData == null ? null : ctx_r4655.DepartmentData.CabinetMinisterPhoto);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4655.DepartmentData && ctx_r4655.DepartmentData.VcPhotoPath);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4655.DepartmentData && ctx_r4655.DepartmentData.ChairmanPhotoPath);
}
}
function HeaderComponent_section_48_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "section", 76);
core["ac"
/* ɵɵelementStart */
](1, "div", 77);
core["ac"
/* ɵɵelementStart */
](2, "div", 78);
core["ac"
/* ɵɵelementStart */
](3, "div", 79);
core["ac"
/* ɵɵelementStart */
](4, "div", 80);
core["ac"
/* ɵɵelementStart */
](5, "div", 81);
core["Tc"
/* ɵɵtemplate */
](6, HeaderComponent_section_48_a_6_Template, 2, 4, "a", 82);
core["Tc"
/* ɵɵtemplate */
](7, HeaderComponent_section_48_ng_container_7_Template, 3, 2, "ng-container", 26);
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](8, "div", 83);
core["ac"
/* ɵɵelementStart */
](9, "div", 84);
core["ac"
/* ɵɵelementStart */
](10, "a", 85);
core["Vc"
/* ɵɵtext */
](11);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](12, "div", 86);
core["Tc"
/* ɵɵtemplate */
](13, HeaderComponent_section_48_div_13_Template, 8, 7, "div", 87);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
}
if (rf & 2) {
var ctx_r4625 = core["mc"
/* ɵɵnextContext */
]();
core["Hb"
/* ɵɵadvance */
](6);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4625.DepartmentData == null ? null : ctx_r4625.DepartmentData.LogoUrl);
core["Hb"
/* ɵɵadvance */
](1);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx_r4625.DepartmentData.IsShowHeaderIcon && ctx_r4625.DepartmentData.HeaderIconPath);
core["Hb"
/* ɵɵadvance */
](3);
core["uc"
/* ɵɵpropertyInterpolate */
]("routerLink", ctx_r4625._commonService.GetHomePageUrl());
core["Hb"
/* ɵɵadvance */
](1);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", ctx_r4625.translate.currentLang == "en" ? ctx_r4625.DepartmentData == null ? null : ctx_r4625.DepartmentData.DisplayName : ctx_r4625.DepartmentData == null ? null : ctx_r4625.DepartmentData.DisplayNameHindi, " ");
core["Hb"
/* ɵɵadvance */
](2);
core["tc"
/* ɵɵproperty */
]("ngIf", !ctx_r4625.model.GovtInCodeOfConduct);
}
}
var _c1 = function _c1(a0) {
return {
active: a0
};
};
var _c2 = function _c2() {
return {
standalone: true
};
};
var header_component_HeaderComponent =
/*@__PURE__*/
function () {
var HeaderComponent =
/*#__PURE__*/
function () {
function HeaderComponent(translate, sanitizer, _route, router, _commonService, _cmprofileService, departmentService, _departmentService) {
_classCallCheck(this, HeaderComponent);
this.translate = translate;
this.sanitizer = sanitizer;
this._route = _route;
this.router = router;
this._commonService = _commonService;
this._cmprofileService = _cmprofileService;
this.departmentService = departmentService;
this._departmentService = _departmentService;
this.deptEnum = department_enum["a"
/* DepartmentEnum */
];
this.defaultFontSize = 14;
this.currentFontSize = 14;
this.model = new CMprofileViewModel();
this.prabhariMantri = new department_view_model_model["f"
/* PrabhariMantriDetailModel */
]();
this.isDistrict = true;
this.isUpdationComplete = true;
this._departmentData = new dpt_district_website_model["b"
/* DepartmentDetailModel */
]();
this.fontSize = new core["q"
/* EventEmitter */
]();
this.SetTheme = new core["q"
/* EventEmitter */
]();
this.skipToMainContent = new core["q"
/* EventEmitter */
]();
this.skipToNavbar = new core["q"
/* EventEmitter */
]();
this.searchText = '';
this.defaultSectoralUrl = '';
this.defaultSectoralUrl = url_enum["a"
/* UrlEnum */
].SectoralUrl;
} // pmImage:any = 0;
return _createClass2(HeaderComponent, [{
key: "DepartmentData",
get: function get() {
return this._departmentData;
},
set: function set(val) {
this._departmentData = val;
if (val.DefaultThemeColor) this.changeTheme(val.DefaultThemeColor);
if (val.DefaultFontSize) {
this.setFontSize(Number(val.DefaultFontSize), "=");
this.defaultFontSize = Number(val.DefaultFontSize);
}
if (val.IsUpdationComplete != undefined) this.isUpdationComplete = val.IsUpdationComplete;
}
}, {
key: "ngOnInit",
value: function ngOnInit() {
var _this130 = this;
this._route.paramMap.subscribe(function (params) {
//this.isDistrict = this._commonService.IsDistrict();
_this130.GetCMProfile();
setTimeout(function () {
_this130.GetPrabhariMantriDetail();
_this130.deptCode = _this130._commonService.GetWebDistDeptCode();
}, 500);
_this130.departmentService.getDepartmentDetail().subscribe(function (data) {
if (data) {
_this130.websiteCode = localStorage.getItem("websiteCode");
_this130.DepartmentData = data; // Any additional logic when department data updates
}
});
});
setTimeout(function () {
_this130.changeTheme();
}, 200);
}
}, {
key: "ngOnChanges",
value: function ngOnChanges(changes) {
if (changes.DepartmentData.currentValue != changes.DepartmentData.previousValue) {
this.isDistrict = this._commonService.IsDistrict(); // if (this.DepartmentData && this.DepartmentData.WebsiteImage) {
// this.DepartmentData.WebsiteImage = this.DepartmentData.WebsiteImage.replace(/\\/g, "/");
// }
}
}
}, {
key: "onSkipToMainContent",
value: function onSkipToMainContent() {
this.skipToMainContent.emit();
}
}, {
key: "onSkipToNavbar",
value: function onSkipToNavbar() {
debugger;
this.skipToNavbar.emit();
}
}, {
key: "restrictSpecialChars",
value: function restrictSpecialChars(event) {
var regex = /^[a-zA-Z0-9]*$/; // Allow only letters and numbers
if (!regex.test(event.key)) {
event.preventDefault();
}
}
}, {
key: "openMenu",
value: function openMenu() {
this.navBar.openNav();
}
}, {
key: "changeLanguage",
value: function changeLanguage(language) {
this._commonService.ChangeLanguage(language);
}
}, {
key: "sanitizeImageUrl",
value: function sanitizeImageUrl(imageUrl) {
return this.sanitizer.bypassSecurityTrustUrl(imageUrl);
}
}, {
key: "setFontSize",
value: function setFontSize(size, mode) {
this.currentFontSize = sessionStorage.getItem("fontSize") != null ? Number(sessionStorage.getItem("fontSize")) : this.currentFontSize;
if (mode === '+' && this.currentFontSize < this.defaultFontSize + 3) {
// increment
this.currentFontSize += size;
} else if (mode === '-' && this.currentFontSize > this.defaultFontSize - 3) {
//for decrement
this.currentFontSize += size;
} else if (mode === '=') {
// for reset
this.currentFontSize = size;
}
this.fontSize.emit(this.currentFontSize);
}
}, {
key: "changeTheme",
value: function changeTheme() {
var themeName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
this.SetTheme.emit(themeName);
}
}, {
key: "GetCMProfile",
value: function GetCMProfile() {
var _this131 = this;
this._cmprofileService.GetCMProfileDetail().subscribe(function (response) {
if (response.IsSuccess) {
_this131.model = response.Data;
}
}, function (error) {});
}
}, {
key: "GetPrabhariMantriDetail",
value: function GetPrabhariMantriDetail() {
var _this132 = this;
var deptCode = this._commonService.GetWebDistDeptCode(); // this.pmImage = this._commonService.GetWebDistDeptCode();
this._departmentService.GetPrabhariMantriDetail(deptCode).subscribe(function (data) {
if (data.IsSuccess) {
_this132.prabhariMantri = data.Data;
}
}, function (error) {
console.error(error);
});
}
}, {
key: "safeURL",
value: function safeURL(url) {
return;
}
}, {
key: "onSearch",
value: function onSearch() {
localStorage.setItem('searchText', this.searchText);
this.router.navigate(["/home/search-result/" + this.searchText]);
this.searchText = '';
}
}]);
}();
HeaderComponent.ɵfac = function HeaderComponent_Factory(t) {
return new (t || HeaderComponent)(core["Vb"
/* ɵɵdirectiveInject */
](ngx_translate_core["d"
/* TranslateService */
]), core["Vb"
/* ɵɵdirectiveInject */
](platform_browser["b"
/* DomSanitizer */
]), core["Vb"
/* ɵɵdirectiveInject */
](fesm2015_router["a"
/* ActivatedRoute */
]), core["Vb"
/* ɵɵdirectiveInject */
](fesm2015_router["b"
/* Router */
]), core["Vb"
/* ɵɵdirectiveInject */
](common_service["a"
/* CommonService */
]), core["Vb"
/* ɵɵdirectiveInject */
](chief_mnister_profile_service_ChiefMnisterProfileService), core["Vb"
/* ɵɵdirectiveInject */
](department_service["a"
/* DepartmentService */
]), core["Vb"
/* ɵɵdirectiveInject */
](department_profile_service["a"
/* DepartmentProfileService */
]));
};
HeaderComponent.ɵcmp = core["Pb"
/* ɵɵdefineComponent */
]({
type: HeaderComponent,
selectors: [["app-header"]],
viewQuery: function HeaderComponent_Query(rf, ctx) {
if (rf & 1) {
core["bd"
/* ɵɵviewQuery */
](nav_bar_component["a"
/* NavBarComponent */
], true);
}
if (rf & 2) {
var _t;
core["Jc"
/* ɵɵqueryRefresh */
](_t = core["jc"
/* ɵɵloadQuery */
]()) && (ctx.navBar = _t.first);
}
},
inputs: {
DepartmentData: "DepartmentData"
},
outputs: {
fontSize: "fontSize",
SetTheme: "SetTheme",
skipToMainContent: "skipToMainContent",
skipToNavbar: "skipToNavbar"
},
features: [core["Fb"
/* ɵɵNgOnChangesFeature */
]],
decls: 49,
vars: 36,
consts: [[1, "topbar"], [1, "container-fluid"], [1, "row"], [1, "col-lg-12", "pl-0"], [1, "d-flex", "flex-wrap", "align-items-center", "justify-content-between"], [1, "topbar-sectoral-btn"], [3, "href"], [1, "d-flex", "flex-wrap", "align-items-center", "ml-auto", "justify-content-center", "justify-content-xl-end"], [1, "header-btns"], ["href", "javascript:void(0);", 1, "header-btns-items", 3, "click"], [1, "fas", "fa-bars"], [1, "theme-change", "d-flex"], [1, "theme-change-btn", "theme-green-btn", 3, "click"], [1, "theme-change-btn", "theme-sky-btn", 3, "click"], [1, "theme-change-btn", "theme-default", 3, "click"], [1, "theme-change-btn", "theme-orange", 3, "click"], [1, "lan-change"], ["href", "javascript: void(0);", 1, "font-sm", 3, "ngClass", "click"], [1, "font-size-change"], [1, "btn", "font-sm", 3, "click"], [1, "header_search"], ["autocomplete", "off", 1, "m-0"], ["type", "text", "maxlength", "25", 3, "placeholder", "ngModel", "ngModelOptions", "keypress", "ngModelChange"], ["type", "submit", 3, "click"], ["xmlns", "http://www.w3.org/2000/svg", "width", "16", "height", "16", "fill", "currentColor", "viewBox", "0 0 16 16", 1, "bi", "bi-search"], ["d", "M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"], [4, "ngIf"], ["class", "template-university-minister-header", "style", " background: url(../../assets/images/university-bg3.png);", 4, "ngIf"], [1, "header-logo", "print-d-none"], [1, "row", "align-items-center", "justify-content-between"], [1, "header-logo-items", "header-main-logo", "d-flex", "align-items-center", "flex-wrap"], [3, "routerLink", 4, "ngIf"], ["class", "header-icon-link d-flex align-items-center", 4, "ngIf"], ["class", "d-flex justify-content-end ml-auto", 4, "ngIf"], ["class", "custom-logo", 4, "ngIf"], ["class", "header-logo-items d-flex hcm_with_name align-items-end position-relative print-d-none", 4, "ngIf"], [3, "routerLink"], ["src", "assets/images/logo_sm.png", 1, "main-logo", 3, "alt", "title"], [1, "logo_dis_name"], [1, "logo_gov_tagline"], ["alt", "department", "title", "department", 1, "main-logo", 3, "src"], [1, "header-icon-link", "d-flex", "align-items-center"], ["target", "_blank", 3, "href", 4, "ngIf"], ["routerLink", "/pages/assets-list", 4, "ngIf"], ["target", "_blank", 3, "href"], [3, "ngClass", "src"], ["routerLink", "/pages/assets-list"], [1, "d-flex", "justify-content-end", "ml-auto"], ["href", "https://x.com/merajgovt", "target", "_blank", 1, "social-icon", 2, "padding-right", "12px"], ["xmlns", "http://www.w3.org/2000/svg", "height", "35", "width", "35", "viewBox", "0 0 512 512", 1, "footer-twiter-icon", 2, "background", "none"], ["d", "M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"], ["href", "https://www.instagram.com/merajgovt/", "target", "_blank", "rel", "noopener noreferrer", 1, "social-icon"], ["src", "../../assets/images/insta.png", 1, "", 2, "height", "28px", "padding-right", "17px"], ["href", "https://www.facebook.com/profile.php?id=61573009942707", "target", "_blank", "rel", "noopener noreferrer", 1, "social-icon"], [1, "fab", "fa-facebook-f", 2, "font-size", "x-large", "padding-right", "17px"], [1, "custom-logo"], [1, "img-fluid", 3, "src"], [1, "header-logo-items", "d-flex", "hcm_with_name", "align-items-end", "position-relative", "print-d-none"], ["href", "javascript:void(0);", "style", "cursor: auto;", 4, "ngIf"], ["class", "dept-min-profile", 4, "ngIf"], ["href", "javascript:void(0);", 2, "cursor", "auto"], [1, "raj-cm", 3, "src", "alt", "title", "error"], [1, "header-img-info"], [1, "m-0"], [1, "dept-min-profile"], ["href", "javascript:void(0);", 4, "ngIf"], ["href", "javascript:void(0);"], [1, "raj-cabinet-header", 3, "src", "alt", "title", "error"], [1, "min-profile-name"], [2, "margin", "2px 0px", "font-size", "12px"], [1, "raj-cabinet-header", 3, "src", "alt", "title"], [2, "margin", "0px"], [2, "margin", "2px 0px", "font-size", "12px", "font-weight", "100"], ["src", "assets/images/kisanayogchairman.jpg", 1, "raj-cabinet-header", "chair-man", 3, "alt", "title"], ["src", "assets/images/pcb.jpg", 1, "raj-cabinet-header", "chair-man", 3, "alt", "title"], ["src", "assets/images/sem.jpeg", 1, "raj-cabinet-header", "chair-man", 3, "alt", "title"], [1, "template-university-minister-header", 2, "background", "url(../../assets/images/university-bg3.png)"], [1, "container"], [1, "row", "align-items-center"], [1, "col-xl-5", "col-md-12", "col-sm-12", "col-12"], [1, "row", "justify-content-flex-start", "align-items-center"], [1, "col-xl-3", "col-md-3", "col-sm-3", "col-12"], ["class", "uni-temp-logo", 3, "routerLink", 4, "ngIf"], [1, "col-xl-9", "col-md-9", "col-sm-9", "col-12"], [1, "right-text", "display-name"], [1, "uni-temp-logo-name", 3, "routerLink"], [1, "col-xl-7", "col-xl-6", "col-md-12", "col-sm-12", "col-12"], ["class", "d-flex flex-wrap justify-content-end template-university-minister-header-middle", 4, "ngIf"], [1, "uni-temp-logo", 3, "routerLink"], [3, "src", "alt", "title"], ["target", "_blank", "class", "uni-temp-logo", 3, "href", 4, "ngIf"], ["routerLink", "/pages/assets-list", "class", "uni-temp-logo", 4, "ngIf"], ["target", "_blank", 1, "uni-temp-logo", 3, "href"], [3, "src", "ngClass", "alt", "title"], ["routerLink", "/pages/assets-list", 1, "uni-temp-logo"], [1, "d-flex", "flex-wrap", "justify-content-end", "template-university-minister-header-middle"], ["class", "template-university-minister-img-items", 4, "ngIf"], [1, "template-university-minister-img-items"], [1, "template-university-minister-img-items-img"], [1, "template-university-minister-img-items-info"]],
template: function HeaderComponent_Template(rf, ctx) {
if (rf & 1) {
core["ac"
/* ɵɵelementStart */
](0, "section", 0);
core["ac"
/* ɵɵelementStart */
](1, "div", 1);
core["ac"
/* ɵɵelementStart */
](2, "div", 2);
core["ac"
/* ɵɵelementStart */
](3, "div", 3);
core["ac"
/* ɵɵelementStart */
](4, "div", 4);
core["ac"
/* ɵɵelementStart */
](5, "div", 5);
core["ac"
/* ɵɵelementStart */
](6, "a", 6);
core["Vc"
/* ɵɵtext */
](7, "Sectoral Portal");
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](8, "div", 7);
core["ac"
/* ɵɵelementStart */
](9, "div", 8);
core["ac"
/* ɵɵelementStart */
](10, "a", 9);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_10_listener() {
return ctx.onSkipToMainContent();
});
core["Vc"
/* ɵɵtext */
](11);
core["nc"
/* ɵɵpipe */
](12, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](13, "a", 9);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_13_listener() {
return ctx.onSkipToNavbar();
});
core["Wb"
/* ɵɵelement */
](14, "i", 10);
core["Vc"
/* ɵɵtext */
](15);
core["nc"
/* ɵɵpipe */
](16, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](17, "div", 11);
core["ac"
/* ɵɵelementStart */
](18, "a", 12);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_18_listener() {
return ctx.changeTheme("theme-Default");
});
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](19, "a", 13);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_19_listener() {
return ctx.changeTheme("theme-black");
});
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](20, "a", 14);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_20_listener() {
return ctx.changeTheme("theme-blue-new");
});
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](21, "a", 15);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_21_listener() {
return ctx.changeTheme("theme-orange");
});
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](22, "div", 16);
core["ac"
/* ɵɵelementStart */
](23, "a", 17);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_23_listener() {
return ctx.changeLanguage("hi");
});
core["Vc"
/* ɵɵtext */
](24);
core["nc"
/* ɵɵpipe */
](25, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](26, "a", 17);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_26_listener() {
return ctx.changeLanguage("en");
});
core["Vc"
/* ɵɵtext */
](27);
core["nc"
/* ɵɵpipe */
](28, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](29, "div", 18);
core["ac"
/* ɵɵelementStart */
](30, "a", 19);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_30_listener() {
return ctx.setFontSize(1, "+");
});
core["Vc"
/* ɵɵtext */
](31);
core["nc"
/* ɵɵpipe */
](32, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](33, "a", 19);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_33_listener() {
return ctx.setFontSize(0 - 1, "-");
});
core["Vc"
/* ɵɵtext */
](34);
core["nc"
/* ɵɵpipe */
](35, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](36, "a", 19);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_a_click_36_listener() {
return ctx.setFontSize(ctx.defaultFontSize, "=");
});
core["Vc"
/* ɵɵtext */
](37);
core["nc"
/* ɵɵpipe */
](38, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](39, "div", 20);
core["ac"
/* ɵɵelementStart */
](40, "form", 21);
core["ac"
/* ɵɵelementStart */
](41, "input", 22);
core["ic"
/* ɵɵlistener */
]("keypress", function HeaderComponent_Template_input_keypress_41_listener($event) {
return ctx.restrictSpecialChars($event);
})("ngModelChange", function HeaderComponent_Template_input_ngModelChange_41_listener($event) {
return ctx.searchText = $event;
});
core["nc"
/* ɵɵpipe */
](42, "translate");
core["Zb"
/* ɵɵelementEnd */
]();
core["ac"
/* ɵɵelementStart */
](43, "button", 23);
core["ic"
/* ɵɵlistener */
]("click", function HeaderComponent_Template_button_click_43_listener() {
return ctx.onSearch();
});
core["lc"
/* ɵɵnamespaceSVG */
]();
core["ac"
/* ɵɵelementStart */
](44, "svg", 24);
core["Wb"
/* ɵɵelement */
](45, "path", 25);
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Zb"
/* ɵɵelementEnd */
]();
core["Tc"
/* ɵɵtemplate */
](46, HeaderComponent_ng_container_46_Template, 13, 10, "ng-container", 26);
core["kc"
/* ɵɵnamespaceHTML */
]();
core["Wb"
/* ɵɵelement */
](47, "app-nav-bar");
core["Tc"
/* ɵɵtemplate */
](48, HeaderComponent_section_48_Template, 14, 5, "section", 27);
}
if (rf & 2) {
core["Hb"
/* ɵɵadvance */
](6);
core["tc"
/* ɵɵproperty */
]("href", ctx.DepartmentData.SectoralWebsiteURL || ctx.defaultSectoralUrl, core["Pc"
/* ɵɵsanitizeUrl */
]);
core["Hb"
/* ɵɵadvance */
](5);
core["Xc"
/* ɵɵtextInterpolate1 */
]("\u2193 ", core["oc"
/* ɵɵpipeBind1 */
](12, 15, "SkipToMainContent_txt"), " ");
core["Hb"
/* ɵɵadvance */
](4);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", core["oc"
/* ɵɵpipeBind1 */
](16, 17, "SkipToNavContent_txt"), " ");
core["Hb"
/* ɵɵadvance */
](8);
core["tc"
/* ɵɵproperty */
]("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](31, _c1, ctx._commonService.GetLanguage() == "hi"));
core["Hb"
/* ɵɵadvance */
](1);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", core["oc"
/* ɵɵpipeBind1 */
](25, 19, "HindiLang_txt"), " ");
core["Hb"
/* ɵɵadvance */
](2);
core["tc"
/* ɵɵproperty */
]("ngClass", core["Ec"
/* ɵɵpureFunction1 */
](33, _c1, ctx._commonService.GetLanguage() == "en"));
core["Hb"
/* ɵɵadvance */
](1);
core["Xc"
/* ɵɵtextInterpolate1 */
](" ", core["oc"
/* ɵɵpipeBind1 */
](28, 21, "EnglishLang_txt"), " ");
core["Hb"
/* ɵɵadvance */
](4);
core["Xc"
/* ɵɵtextInterpolate1 */
]("", core["oc"
/* ɵɵpipeBind1 */
](32, 23, "FontSize_Char"), "+");
core["Hb"
/* ɵɵadvance */
](3);
core["Xc"
/* ɵɵtextInterpolate1 */
]("", core["oc"
/* ɵɵpipeBind1 */
](35, 25, "FontSize_Char"), "-");
core["Hb"
/* ɵɵadvance */
](3);
core["Wc"
/* ɵɵtextInterpolate */
](core["oc"
/* ɵɵpipeBind1 */
](38, 27, "FontSize_Char"));
core["Hb"
/* ɵɵadvance */
](4);
core["uc"
/* ɵɵpropertyInterpolate */
]("placeholder", core["oc"
/* ɵɵpipeBind1 */
](42, 29, "Search_txt"));
core["tc"
/* ɵɵproperty */
]("ngModel", ctx.searchText)("ngModelOptions", core["Dc"
/* ɵɵpureFunction0 */
](35, _c2));
core["Hb"
/* ɵɵadvance */
](5);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx.DepartmentData);
core["Hb"
/* ɵɵadvance */
](2);
core["tc"
/* ɵɵproperty */
]("ngIf", ctx.DepartmentData);
}
},
directives: [common["l"
/* NgClass */
], fesm2015_forms["x"
/* ɵangular_packages_forms_forms_y */
], fesm2015_forms["n"
/* NgControlStatusGroup */
], fesm2015_forms["o"
/* NgForm */
], fesm2015_forms["b"
/* DefaultValueAccessor */
], fesm2015_forms["i"
/* MaxLengthValidator */
], fesm2015_forms["m"
/* NgControlStatus */
], fesm2015_forms["p"
/* NgModel */
], common["n"
/* NgIf */
], nav_bar_component["a"
/* NavBarComponent */
], fesm2015_router["d"
/* RouterLinkWithHref */
]],
pipes: [ngx_translate_core["c"
/* TranslatePipe */
]],
styles: [".icon-for-budget[_ngcontent-%COMP%]{max-width:155px!important;margin-left:50px}.right-text.display-name[_ngcontent-%COMP%]{float:right;position:relative;right:15px}.chair-man[_ngcontent-%COMP%]{width:60px}.r-raj[_ngcontent-%COMP%]{cursor:auto;margin:0 40px;cursor:pointer}.r-raj[_ngcontent-%COMP%] .raj-cm[_ngcontent-%COMP%]{max-width:120px;margin:auto;max-height:110px;border-radius:10px;cursor:pointer}.r-raj[_ngcontent-%COMP%] .raj-cm[_ngcontent-%COMP%]:hover{max-width:130px;border:1px solid #000}@media screen and (max-width:766px){.r-raj[_ngcontent-%COMP%]{cursor:auto;margin:0 10px 80px 20px;cursor:pointer}}@media screen and (max-width:1200px){.template-university-minister-header-middle[_ngcontent-%COMP%]{justify-content:start!important;margin-top:10px}.template-university-minister-img-items[_ngcontent-%COMP%]{margin:25px 10px 0 0}.right-text[_ngcontent-%COMP%]{float:left!important}}.social-icon[_ngcontent-%COMP%]:hover{transform:translatey(-10px)}"]
});
return HeaderComponent;
}();
/***/
},
/***/
"fXoL":
/***/
function fXoL(module, __webpack_exports__, __webpack_require__) {
"use strict"; // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Subject.js
var Subject = __webpack_require__("XNiG"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Subscription.js + 1 modules
var Subscription = __webpack_require__("quSY"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Observable.js + 2 modules
var Observable = __webpack_require__("HDdC"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/observable/merge.js
var merge = __webpack_require__("VRyK"); // EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Subscriber.js
var Subscriber = __webpack_require__("7o/Q"); // CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/operators/refCount.js
function _refCount() {
return function refCountOperatorFunction(source) {
return source.lift(new RefCountOperator(source));
};
}
var RefCountOperator =
/*#__PURE__*/
function () {
function RefCountOperator(connectable) {
_classCallCheck(this, RefCountOperator);
this.connectable = connectable;
}
return _createClass2(RefCountOperator, [{
key: "call",
value: function call(subscriber, source) {
var connectable = this.connectable;
connectable._refCount++;
var refCounter = new refCount_RefCountSubscriber(subscriber, connectable);
var subscription = source.subscribe(refCounter);
if (!refCounter.closed) {
refCounter.connection = connectable.connect();
}
return subscription;
}
}]);
}();
var refCount_RefCountSubscriber =
/*#__PURE__*/
function (_Subscriber$a) {
function refCount_RefCountSubscriber(destination, connectable) {
var _this133;
_classCallCheck(this, refCount_RefCountSubscriber);
_this133 = _callSuper(this, refCount_RefCountSubscriber, [destination]);
_this133.connectable = connectable;
return _this133;
}
_inherits(refCount_RefCountSubscriber, _Subscriber$a);
return _createClass2(refCount_RefCountSubscriber, [{
key: "_unsubscribe",
value: function _unsubscribe() {
var connectable = this.connectable;
if (!connectable) {
this.connection = null;
return;
}
this.connectable = null;
var refCount = connectable._refCount;
if (refCount <= 0) {
this.connection = null;
return;
}
connectable._refCount = refCount - 1;
if (refCount > 1) {
this.connection = null;
return;
}
var connection = this.connection;
var sharedConnection = connectable._connection;
this.connection = null;
if (sharedConnection && (!connection || sharedConnection === connection)) {
sharedConnection.unsubscribe();
}
}
}]);
}(Subscriber["a"
/* Subscriber */
]); //# sourceMappingURL=refCount.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/observable/ConnectableObservable.js
var ConnectableObservable_ConnectableObservable =
/*#__PURE__*/
function (_Observable$a) {
function ConnectableObservable_ConnectableObservable(source, subjectFactory) {
var _this134;
_classCallCheck(this, ConnectableObservable_ConnectableObservable);
_this134 = _callSuper(this, ConnectableObservable_ConnectableObservable);
_this134.source = source;
_this134.subjectFactory = subjectFactory;
_this134._refCount = 0;
_this134._isComplete = false;
return _this134;
}
_inherits(ConnectableObservable_ConnectableObservable, _Observable$a);
return _createClass2(ConnectableObservable_ConnectableObservable, [{
key: "_subscribe",
value: function _subscribe(subscriber) {
return this.getSubject().subscribe(subscriber);
}
}, {
key: "getSubject",
value: function getSubject() {
var subject = this._subject;
if (!subject || subject.isStopped) {
this._subject = this.subjectFactory();
}
return this._subject;
}
}, {
key: "connect",
value: function connect() {
var connection = this._connection;
if (!connection) {
this._isComplete = false;
connection = this._connection = new Subscription["a"
/* Subscription */
]();
connection.add(this.source.subscribe(new ConnectableObservable_ConnectableSubscriber(this.getSubject(), this)));
if (connection.closed) {
this._connection = null;
connection = Subscription["a"
/* Subscription */
].EMPTY;
}
}
return connection;
}
}, {
key: "refCount",
value: function refCount() {
return _refCount()(this);
}
}]);
}(Observable["a"
/* Observable */
]);
var connectableObservableDescriptor =
/*@__PURE__*/
function () {
var connectableProto = ConnectableObservable_ConnectableObservable.prototype;
return {
operator: {
value: null
},
_refCount: {
value: 0,
writable: true
},
_subject: {
value: null,
writable: true
},
_connection: {
value: null,
writable: true
},
_subscribe: {
value: connectableProto._subscribe
},
_isComplete: {
value: connectableProto._isComplete,
writable: true
},
getSubject: {
value: connectableProto.getSubject
},
connect: {
value: connectableProto.connect
},
refCount: {
value: connectableProto.refCount
}
};
}();
var ConnectableObservable_ConnectableSubscriber =
/*#__PURE__*/
function (_Subject$b) {
function ConnectableObservable_ConnectableSubscriber(destination, connectable) {
var _this135;
_classCallCheck(this, ConnectableObservable_ConnectableSubscriber);
_this135 = _callSuper(this, ConnectableObservable_ConnectableSubscriber, [destination]);
_this135.connectable = connectable;
return _this135;
}
_inherits(ConnectableObservable_ConnectableSubscriber, _Subject$b);
return _createClass2(ConnectableObservable_ConnectableSubscriber, [{
key: "_error",
value: function _error(err) {
this._unsubscribe();
_superPropGet(ConnectableObservable_ConnectableSubscriber, "_error", this, 3)([err]);
}
}, {
key: "_complete",
value: function _complete() {
this.connectable._isComplete = true;
this._unsubscribe();
_superPropGet(ConnectableObservable_ConnectableSubscriber, "_complete", this, 3)([]);
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var connectable = this.connectable;
if (connectable) {
this.connectable = null;
var connection = connectable._connection;
connectable._refCount = 0;
connectable._subject = null;
connectable._connection = null;
if (connection) {
connection.unsubscribe();
}
}
}
}]);
}(Subject["b"
/* SubjectSubscriber */
]);
var ConnectableObservable_RefCountOperator =
/*#__PURE__*/
function () {
function ConnectableObservable_RefCountOperator(connectable) {
_classCallCheck(this, ConnectableObservable_RefCountOperator);
this.connectable = connectable;
}
return _createClass2(ConnectableObservable_RefCountOperator, [{
key: "call",
value: function call(subscriber, source) {
var connectable = this.connectable;
connectable._refCount++;
var refCounter = new ConnectableObservable_RefCountSubscriber(subscriber, connectable);
var subscription = source.subscribe(refCounter);
if (!refCounter.closed) {
refCounter.connection = connectable.connect();
}
return subscription;
}
}]);
}();
var ConnectableObservable_RefCountSubscriber =
/*#__PURE__*/
function (_Subscriber$a2) {
function ConnectableObservable_RefCountSubscriber(destination, connectable) {
var _this136;
_classCallCheck(this, ConnectableObservable_RefCountSubscriber);
_this136 = _callSuper(this, ConnectableObservable_RefCountSubscriber, [destination]);
_this136.connectable = connectable;
return _this136;
}
_inherits(ConnectableObservable_RefCountSubscriber, _Subscriber$a2);
return _createClass2(ConnectableObservable_RefCountSubscriber, [{
key: "_unsubscribe",
value: function _unsubscribe() {
var connectable = this.connectable;
if (!connectable) {
this.connection = null;
return;
}
this.connectable = null;
var refCount = connectable._refCount;
if (refCount <= 0) {
this.connection = null;
return;
}
connectable._refCount = refCount - 1;
if (refCount > 1) {
this.connection = null;
return;
}
var connection = this.connection;
var sharedConnection = connectable._connection;
this.connection = null;
if (sharedConnection && (!connection || sharedConnection === connection)) {
sharedConnection.unsubscribe();
}
}
}]);
}(Subscriber["a"
/* Subscriber */
]); //# sourceMappingURL=ConnectableObservable.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/operators/multicast.js
function multicast(subjectOrSubjectFactory, selector) {
return function multicastOperatorFunction(source) {
var subjectFactory;
if (typeof subjectOrSubjectFactory === 'function') {
subjectFactory = subjectOrSubjectFactory;
} else {
subjectFactory = function subjectFactory() {
return subjectOrSubjectFactory;
};
}
if (typeof selector === 'function') {
return source.lift(new MulticastOperator(subjectFactory, selector));
}
var connectable = Object.create(source, connectableObservableDescriptor);
connectable.source = source;
connectable.subjectFactory = subjectFactory;
return connectable;
};
}
var MulticastOperator =
/*#__PURE__*/
function () {
function MulticastOperator(subjectFactory, selector) {
_classCallCheck(this, MulticastOperator);
this.subjectFactory = subjectFactory;
this.selector = selector;
}
return _createClass2(MulticastOperator, [{
key: "call",
value: function call(subscriber, source) {
var selector = this.selector;
var subject = this.subjectFactory();
var subscription = selector(subject).subscribe(subscriber);
subscription.add(source.subscribe(subject));
return subscription;
}
}]);
}(); //# sourceMappingURL=multicast.js.map
// CONCATENATED MODULE: ./node_modules/rxjs/_esm2015/internal/operators/share.js
function shareSubjectFactory() {
return new Subject["a"
/* Subject */
]();
}
function share() {
return function (source) {
return _refCount()(multicast(shareSubjectFactory)(source));
};
} //# sourceMappingURL=share.js.map
// CONCATENATED MODULE: ./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "a", function () {
return ANALYZE_FOR_ENTRY_COMPONENTS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "b", function () {
return APP_BOOTSTRAP_LISTENER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "c", function () {
return APP_ID;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "d", function () {
return APP_INITIALIZER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "e", function () {
return ApplicationInitStatus;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "f", function () {
return ApplicationModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "g", function () {
return core_ApplicationRef;
});
/* unused harmony export Attribute */
/* unused harmony export COMPILER_OPTIONS */
/* unused harmony export CUSTOM_ELEMENTS_SCHEMA */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "h", function () {
return ChangeDetectionStrategy;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "i", function () {
return ChangeDetectorRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "j", function () {
return Compiler;
});
/* unused harmony export CompilerFactory */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "k", function () {
return Component;
});
/* unused harmony export ComponentFactory */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "l", function () {
return ComponentFactoryResolver;
});
/* unused harmony export ComponentRef */
/* unused harmony export ContentChild */
/* unused harmony export ContentChildren */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "m", function () {
return DEFAULT_CURRENCY_CODE;
});
/* unused harmony export DebugElement */
/* unused harmony export DebugEventListener */
/* unused harmony export DebugNode */
/* unused harmony export DefaultIterableDiffer */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "n", function () {
return Directive;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "o", function () {
return ElementRef;
});
/* unused harmony export EmbeddedViewRef */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "p", function () {
return ErrorHandler;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "q", function () {
return core_EventEmitter;
});
/* unused harmony export Host */
/* unused harmony export HostBinding */
/* unused harmony export HostListener */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "r", function () {
return INJECTOR;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "s", function () {
return Inject;
});
/* unused harmony export InjectFlags */
/* unused harmony export Injectable */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "t", function () {
return InjectionToken;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "u", function () {
return Injector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "v", function () {
return Input;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "w", function () {
return IterableDiffers;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "x", function () {
return KeyValueDiffers;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "y", function () {
return LOCALE_ID$1;
});
/* unused harmony export MissingTranslationStrategy */
/* unused harmony export ModuleWithComponentFactories */
/* unused harmony export NO_ERRORS_SCHEMA */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "z", function () {
return NgModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "A", function () {
return NgModuleFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "B", function () {
return NgModuleFactoryLoader;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "C", function () {
return NgModuleRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "D", function () {
return NgProbeToken;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "E", function () {
return NgZone;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "F", function () {
return Optional;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "G", function () {
return Output;
});
/* unused harmony export PACKAGE_ROOT_URL */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "H", function () {
return PLATFORM_ID;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "I", function () {
return PLATFORM_INITIALIZER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "J", function () {
return Pipe;
});
/* unused harmony export PlatformRef */
/* unused harmony export Query */
/* unused harmony export QueryList */
/* unused harmony export ReflectiveInjector */
/* unused harmony export ReflectiveKey */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "K", function () {
return Renderer2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "L", function () {
return RendererFactory2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "M", function () {
return RendererStyleFlags2;
});
/* unused harmony export ResolvedReflectiveFactory */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "N", function () {
return Sanitizer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "O", function () {
return SecurityContext;
});
/* unused harmony export Self */
/* unused harmony export SimpleChange */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "P", function () {
return SkipSelf;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Q", function () {
return SystemJsNgModuleLoader;
});
/* unused harmony export SystemJsNgModuleLoaderConfig */
/* unused harmony export TRANSLATIONS */
/* unused harmony export TRANSLATIONS_FORMAT */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "R", function () {
return TemplateRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "S", function () {
return Testability;
});
/* unused harmony export TestabilityRegistry */
/* unused harmony export Type */
/* unused harmony export VERSION */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "T", function () {
return Version;
});
/* unused harmony export ViewChild */
/* unused harmony export ViewChildren */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "U", function () {
return ViewContainerRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "V", function () {
return ViewEncapsulation$1;
});
/* unused harmony export ViewRef */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "W", function () {
return WrappedValue;
});
/* unused harmony export asNativeElements */
/* unused harmony export assertPlatform */
/* unused harmony export createPlatform */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "X", function () {
return createPlatformFactory;
});
/* unused harmony export defineInjectable */
/* unused harmony export destroyPlatform */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Y", function () {
return enableProdMode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Z", function () {
return forwardRef;
});
/* unused harmony export getDebugNode */
/* unused harmony export getModuleFactory */
/* unused harmony export getPlatform */
/* unused harmony export inject */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ab", function () {
return isDevMode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bb", function () {
return platformCore;
});
/* unused harmony export resolveForwardRef */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "cb", function () {
return setTestabilityGetter;
});
/* unused harmony export ɵALLOW_MULTIPLE_PLATFORMS */
/* unused harmony export ɵAPP_ID_RANDOM_PROVIDER */
/* unused harmony export ɵChangeDetectorStatus */
/* unused harmony export ɵCodegenComponentFactoryResolver */
/* unused harmony export ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__ */
/* unused harmony export ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__ */
/* unused harmony export ɵCompiler_compileModuleAsync__POST_R3__ */
/* unused harmony export ɵCompiler_compileModuleSync__POST_R3__ */
/* unused harmony export ɵComponentFactory */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "db", function () {
return Console;
});
/* unused harmony export ɵDEFAULT_LOCALE_ID */
/* unused harmony export ɵEMPTY_ARRAY */
/* unused harmony export ɵEMPTY_MAP */
/* unused harmony export ɵINJECTOR_IMPL__POST_R3__ */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "eb", function () {
return INJECTOR_SCOPE;
});
/* unused harmony export ɵLifecycleHooksFeature */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "fb", function () {
return LocaleDataIndex;
});
/* unused harmony export ɵNG_COMP_DEF */
/* unused harmony export ɵNG_DIR_DEF */
/* unused harmony export ɵNG_ELEMENT_ID */
/* unused harmony export ɵNG_INJ_DEF */
/* unused harmony export ɵNG_MOD_DEF */
/* unused harmony export ɵNG_PIPE_DEF */
/* unused harmony export ɵNG_PROV_DEF */
/* unused harmony export ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR */
/* unused harmony export ɵNO_CHANGE */
/* unused harmony export ɵNgModuleFactory */
/* unused harmony export ɵNoopNgZone */
/* unused harmony export ɵReflectionCapabilities */
/* unused harmony export ɵRender3ComponentFactory */
/* unused harmony export ɵRender3ComponentRef */
/* unused harmony export ɵRender3NgModuleRef */
/* unused harmony export ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__ */
/* unused harmony export ɵSWITCH_COMPILE_COMPONENT__POST_R3__ */
/* unused harmony export ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__ */
/* unused harmony export ɵSWITCH_COMPILE_INJECTABLE__POST_R3__ */
/* unused harmony export ɵSWITCH_COMPILE_NGMODULE__POST_R3__ */
/* unused harmony export ɵSWITCH_COMPILE_PIPE__POST_R3__ */
/* unused harmony export ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__ */
/* unused harmony export ɵSWITCH_IVY_ENABLED__POST_R3__ */
/* unused harmony export ɵSWITCH_RENDERER2_FACTORY__POST_R3__ */
/* unused harmony export ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__ */
/* unused harmony export ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__ */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "gb", function () {
return _sanitizeHtml;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "hb", function () {
return _sanitizeStyle;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ib", function () {
return _sanitizeUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "jb", function () {
return allowSanitizationBypassAndThrow;
});
/* unused harmony export ɵand */
/* unused harmony export ɵangular_packages_core_core_a */
/* unused harmony export ɵangular_packages_core_core_b */
/* unused harmony export ɵangular_packages_core_core_ba */
/* unused harmony export ɵangular_packages_core_core_bb */
/* unused harmony export ɵangular_packages_core_core_bc */
/* unused harmony export ɵangular_packages_core_core_bd */
/* unused harmony export ɵangular_packages_core_core_bf */
/* unused harmony export ɵangular_packages_core_core_bg */
/* unused harmony export ɵangular_packages_core_core_bh */
/* unused harmony export ɵangular_packages_core_core_bi */
/* unused harmony export ɵangular_packages_core_core_bj */
/* unused harmony export ɵangular_packages_core_core_bk */
/* unused harmony export ɵangular_packages_core_core_bl */
/* unused harmony export ɵangular_packages_core_core_bm */
/* unused harmony export ɵangular_packages_core_core_bn */
/* unused harmony export ɵangular_packages_core_core_bo */
/* unused harmony export ɵangular_packages_core_core_bq */
/* unused harmony export ɵangular_packages_core_core_c */
/* unused harmony export ɵangular_packages_core_core_d */
/* unused harmony export ɵangular_packages_core_core_e */
/* unused harmony export ɵangular_packages_core_core_f */
/* unused harmony export ɵangular_packages_core_core_g */
/* unused harmony export ɵangular_packages_core_core_h */
/* unused harmony export ɵangular_packages_core_core_i */
/* unused harmony export ɵangular_packages_core_core_j */
/* unused harmony export ɵangular_packages_core_core_k */
/* unused harmony export ɵangular_packages_core_core_l */
/* unused harmony export ɵangular_packages_core_core_m */
/* unused harmony export ɵangular_packages_core_core_n */
/* unused harmony export ɵangular_packages_core_core_o */
/* unused harmony export ɵangular_packages_core_core_p */
/* unused harmony export ɵangular_packages_core_core_q */
/* unused harmony export ɵangular_packages_core_core_r */
/* unused harmony export ɵangular_packages_core_core_s */
/* unused harmony export ɵangular_packages_core_core_t */
/* unused harmony export ɵangular_packages_core_core_u */
/* unused harmony export ɵangular_packages_core_core_v */
/* unused harmony export ɵangular_packages_core_core_w */
/* unused harmony export ɵangular_packages_core_core_x */
/* unused harmony export ɵangular_packages_core_core_y */
/* unused harmony export ɵangular_packages_core_core_z */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "kb", function () {
return bypassSanitizationTrustHtml;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "lb", function () {
return bypassSanitizationTrustResourceUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "mb", function () {
return bypassSanitizationTrustScript;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "nb", function () {
return bypassSanitizationTrustStyle;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ob", function () {
return bypassSanitizationTrustUrl;
});
/* unused harmony export ɵccf */
/* unused harmony export ɵclearOverrides */
/* unused harmony export ɵclearResolutionOfComponentResourcesQueue */
/* unused harmony export ɵcmf */
/* unused harmony export ɵcompileComponent */
/* unused harmony export ɵcompileDirective */
/* unused harmony export ɵcompileNgModule */
/* unused harmony export ɵcompileNgModuleDefs */
/* unused harmony export ɵcompileNgModuleFactory__POST_R3__ */
/* unused harmony export ɵcompilePipe */
/* unused harmony export ɵcreateInjector */
/* unused harmony export ɵcrt */
/* unused harmony export ɵdefaultIterableDiffers */
/* unused harmony export ɵdefaultKeyValueDiffers */
/* unused harmony export ɵdetectChanges */
/* unused harmony export ɵdevModeEqual */
/* unused harmony export ɵdid */
/* unused harmony export ɵeld */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "pb", function () {
return findLocaleData;
});
/* unused harmony export ɵflushModuleScopingQueueAsMuchAsPossible */
/* unused harmony export ɵgetComponentViewDefinitionFactory */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "qb", function () {
return getDebugNodeR2;
});
/* unused harmony export ɵgetDebugNode__POST_R3__ */
/* unused harmony export ɵgetDirectives */
/* unused harmony export ɵgetHostElement */
/* unused harmony export ɵgetInjectableDef */
/* unused harmony export ɵgetLContext */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "rb", function () {
return getLocaleCurrencyCode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "sb", function () {
return getLocalePluralCase;
});
/* unused harmony export ɵgetModuleFactory__POST_R3__ */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "tb", function () {
return getSanitizationBypassType;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ub", function () {
return _global;
});
/* unused harmony export ɵinitServicesIfNeeded */
/* unused harmony export ɵinlineInterpolate */
/* unused harmony export ɵinterpolate */
/* unused harmony export ɵisBoundToModule__POST_R3__ */
/* unused harmony export ɵisDefaultChangeDetectionStrategy */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "vb", function () {
return isListLikeIterable$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "wb", function () {
return isObservable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "xb", function () {
return isPromise;
});
/* unused harmony export ɵivyEnabled */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "yb", function () {
return looseIdentical;
});
/* unused harmony export ɵmakeDecorator */
/* unused harmony export ɵmarkDirty */
/* unused harmony export ɵmod */
/* unused harmony export ɵmpd */
/* unused harmony export ɵncd */
/* unused harmony export ɵnov */
/* unused harmony export ɵoverrideComponentView */
/* unused harmony export ɵoverrideProvider */
/* unused harmony export ɵpad */
/* unused harmony export ɵpatchComponentDefWithScope */
/* unused harmony export ɵpid */
/* unused harmony export ɵpod */
/* unused harmony export ɵppd */
/* unused harmony export ɵprd */
/* unused harmony export ɵpublishDefaultGlobalUtils */
/* unused harmony export ɵpublishGlobalUtil */
/* unused harmony export ɵqud */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "zb", function () {
return registerLocaleData;
});
/* unused harmony export ɵregisterModuleFactory */
/* unused harmony export ɵregisterNgModuleType */
/* unused harmony export ɵrenderComponent */
/* unused harmony export ɵresetCompiledComponents */
/* unused harmony export ɵresolveComponentResources */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Ab", function () {
return setClassMetadata;
});
/* unused harmony export ɵsetCurrentInjector */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Bb", function () {
return setDocument;
});
/* unused harmony export ɵsetLocaleId */
/* unused harmony export ɵstore */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Cb", function () {
return stringify;
});
/* unused harmony export ɵted */
/* unused harmony export ɵtransitiveScopesFor */
/* unused harmony export ɵunregisterLocaleData */
/* unused harmony export ɵunv */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Db", function () {
return unwrapSafeValue;
});
/* unused harmony export ɵvid */
/* unused harmony export ɵwhenRendered */
/* unused harmony export ɵɵCopyDefinitionFeature */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Eb", function () {
return ɵɵInheritDefinitionFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Fb", function () {
return ɵɵNgOnChangesFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Gb", function () {
return ɵɵProvidersFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Hb", function () {
return ɵɵadvance;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Ib", function () {
return ɵɵattribute;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Jb", function () {
return ɵɵattributeInterpolate1;
});
/* unused harmony export ɵɵattributeInterpolate2 */
/* unused harmony export ɵɵattributeInterpolate3 */
/* unused harmony export ɵɵattributeInterpolate4 */
/* unused harmony export ɵɵattributeInterpolate5 */
/* unused harmony export ɵɵattributeInterpolate6 */
/* unused harmony export ɵɵattributeInterpolate7 */
/* unused harmony export ɵɵattributeInterpolate8 */
/* unused harmony export ɵɵattributeInterpolateV */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Kb", function () {
return ɵɵclassMap;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Lb", function () {
return ɵɵclassMapInterpolate1;
});
/* unused harmony export ɵɵclassMapInterpolate2 */
/* unused harmony export ɵɵclassMapInterpolate3 */
/* unused harmony export ɵɵclassMapInterpolate4 */
/* unused harmony export ɵɵclassMapInterpolate5 */
/* unused harmony export ɵɵclassMapInterpolate6 */
/* unused harmony export ɵɵclassMapInterpolate7 */
/* unused harmony export ɵɵclassMapInterpolate8 */
/* unused harmony export ɵɵclassMapInterpolateV */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Mb", function () {
return ɵɵclassProp;
});
/* unused harmony export ɵɵcomponentHostSyntheticListener */
/* unused harmony export ɵɵcontainer */
/* unused harmony export ɵɵcontainerRefreshEnd */
/* unused harmony export ɵɵcontainerRefreshStart */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Nb", function () {
return ɵɵcontentQuery;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Ob", function () {
return ɵɵdefaultStyleSanitizer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Pb", function () {
return ɵɵdefineComponent;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Qb", function () {
return ɵɵdefineDirective;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Rb", function () {
return ɵɵdefineInjectable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Sb", function () {
return ɵɵdefineInjector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Tb", function () {
return ɵɵdefineNgModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Ub", function () {
return ɵɵdefinePipe;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Vb", function () {
return ɵɵdirectiveInject;
});
/* unused harmony export ɵɵdisableBindings */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Wb", function () {
return ɵɵelement;
});
/* unused harmony export ɵɵelementContainer */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Xb", function () {
return ɵɵelementContainerEnd;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Yb", function () {
return ɵɵelementContainerStart;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Zb", function () {
return ɵɵelementEnd;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ac", function () {
return ɵɵelementStart;
});
/* unused harmony export ɵɵembeddedViewEnd */
/* unused harmony export ɵɵembeddedViewStart */
/* unused harmony export ɵɵenableBindings */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bc", function () {
return ɵɵgetCurrentView;
});
/* unused harmony export ɵɵgetFactoryOf */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "cc", function () {
return ɵɵgetInheritedFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "dc", function () {
return ɵɵhostProperty;
});
/* unused harmony export ɵɵi18n */
/* unused harmony export ɵɵi18nApply */
/* unused harmony export ɵɵi18nAttributes */
/* unused harmony export ɵɵi18nEnd */
/* unused harmony export ɵɵi18nExp */
/* unused harmony export ɵɵi18nPostprocess */
/* unused harmony export ɵɵi18nStart */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ec", function () {
return ɵɵinject;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "fc", function () {
return ɵɵinjectAttribute;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "gc", function () {
return ɵɵinjectPipeChangeDetectorRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "hc", function () {
return ɵɵinvalidFactory;
});
/* unused harmony export ɵɵinvalidFactoryDep */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ic", function () {
return ɵɵlistener;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "jc", function () {
return ɵɵloadQuery;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "kc", function () {
return ɵɵnamespaceHTML;
});
/* unused harmony export ɵɵnamespaceMathML */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "lc", function () {
return ɵɵnamespaceSVG;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "mc", function () {
return ɵɵnextContext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "nc", function () {
return ɵɵpipe;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "oc", function () {
return ɵɵpipeBind1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "pc", function () {
return ɵɵpipeBind2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "qc", function () {
return ɵɵpipeBind3;
});
/* unused harmony export ɵɵpipeBind4 */
/* unused harmony export ɵɵpipeBindV */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "rc", function () {
return ɵɵprojection;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "sc", function () {
return ɵɵprojectionDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "tc", function () {
return ɵɵproperty;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "uc", function () {
return ɵɵpropertyInterpolate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "vc", function () {
return ɵɵpropertyInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "wc", function () {
return ɵɵpropertyInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "xc", function () {
return ɵɵpropertyInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "yc", function () {
return ɵɵpropertyInterpolate4;
});
/* unused harmony export ɵɵpropertyInterpolate5 */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "zc", function () {
return ɵɵpropertyInterpolate6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Ac", function () {
return ɵɵpropertyInterpolate7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Bc", function () {
return ɵɵpropertyInterpolate8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Cc", function () {
return ɵɵpropertyInterpolateV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Dc", function () {
return ɵɵpureFunction0;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Ec", function () {
return ɵɵpureFunction1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Fc", function () {
return ɵɵpureFunction2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Gc", function () {
return ɵɵpureFunction3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Hc", function () {
return ɵɵpureFunction4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Ic", function () {
return ɵɵpureFunction5;
});
/* unused harmony export ɵɵpureFunction6 */
/* unused harmony export ɵɵpureFunction7 */
/* unused harmony export ɵɵpureFunction8 */
/* unused harmony export ɵɵpureFunctionV */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Jc", function () {
return ɵɵqueryRefresh;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Kc", function () {
return ɵɵreference;
});
/* unused harmony export ɵɵresolveBody */
/* unused harmony export ɵɵresolveDocument */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Lc", function () {
return ɵɵresolveWindow;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Mc", function () {
return ɵɵrestoreView;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Nc", function () {
return ɵɵsanitizeHtml;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Oc", function () {
return ɵɵsanitizeResourceUrl;
});
/* unused harmony export ɵɵsanitizeScript */
/* unused harmony export ɵɵsanitizeStyle */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Pc", function () {
return ɵɵsanitizeUrl;
});
/* unused harmony export ɵɵsanitizeUrlOrResourceUrl */
/* unused harmony export ɵɵselect */
/* unused harmony export ɵɵsetComponentScope */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Qc", function () {
return ɵɵsetNgModuleScope;
});
/* unused harmony export ɵɵstaticContentQuery */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Rc", function () {
return ɵɵstaticViewQuery;
});
/* unused harmony export ɵɵstyleMap */
/* unused harmony export ɵɵstyleMapInterpolate1 */
/* unused harmony export ɵɵstyleMapInterpolate2 */
/* unused harmony export ɵɵstyleMapInterpolate3 */
/* unused harmony export ɵɵstyleMapInterpolate4 */
/* unused harmony export ɵɵstyleMapInterpolate5 */
/* unused harmony export ɵɵstyleMapInterpolate6 */
/* unused harmony export ɵɵstyleMapInterpolate7 */
/* unused harmony export ɵɵstyleMapInterpolate8 */
/* unused harmony export ɵɵstyleMapInterpolateV */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Sc", function () {
return ɵɵstyleProp;
});
/* unused harmony export ɵɵstylePropInterpolate1 */
/* unused harmony export ɵɵstylePropInterpolate2 */
/* unused harmony export ɵɵstylePropInterpolate3 */
/* unused harmony export ɵɵstylePropInterpolate4 */
/* unused harmony export ɵɵstylePropInterpolate5 */
/* unused harmony export ɵɵstylePropInterpolate6 */
/* unused harmony export ɵɵstylePropInterpolate7 */
/* unused harmony export ɵɵstylePropInterpolate8 */
/* unused harmony export ɵɵstylePropInterpolateV */
/* unused harmony export ɵɵstyleSanitizer */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Tc", function () {
return ɵɵtemplate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Uc", function () {
return ɵɵtemplateRefExtractor;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Vc", function () {
return ɵɵtext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Wc", function () {
return ɵɵtextInterpolate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Xc", function () {
return ɵɵtextInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Yc", function () {
return ɵɵtextInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Zc", function () {
return ɵɵtextInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ad", function () {
return ɵɵtextInterpolate4;
});
/* unused harmony export ɵɵtextInterpolate5 */
/* unused harmony export ɵɵtextInterpolate6 */
/* unused harmony export ɵɵtextInterpolate7 */
/* unused harmony export ɵɵtextInterpolate8 */
/* unused harmony export ɵɵtextInterpolateV */
/* unused harmony export ɵɵupdateSyntheticHostBinding */
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bd", function () {
return ɵɵviewQuery;
});
/**
* @license Angular v9.0.7
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Convince closure compiler that the wrapped function has no side-effects.
*
* Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
* allow us to execute a function but have closure compiler mark the call as no-side-effects.
* It is important that the return value for the `noSideEffects` function be assigned
* to something which is retained otherwise the call to `noSideEffects` will be removed by closure
* compiler.
*/
function noSideEffects(fn) {
return {
toString: fn
}.toString();
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ANNOTATIONS = '__annotations__';
var PARAMETERS = '__parameters__';
var PROP_METADATA = '__prop__metadata__';
/**
* @suppress {globalThis}
*/
function makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {
return noSideEffects(function () {
var metaCtor = makeMetadataCtor(props);
function DecoratorFactory() {
for (var _len9 = arguments.length, args = new Array(_len9), _key0 = 0; _key0 < _len9; _key0++) {
args[_key0] = arguments[_key0];
}
if (this instanceof DecoratorFactory) {
metaCtor.call.apply(metaCtor, [this].concat(args));
return this;
}
var annotationInstance = _construct(DecoratorFactory, args);
return function TypeDecorator(cls) {
if (typeFn) typeFn.apply(void 0, [cls].concat(args)); // Use of Object.defineProperty is important since it creates non-enumerable property which
// prevents the property is copied during subclassing.
var annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, {
value: []
})[ANNOTATIONS];
annotations.push(annotationInstance);
if (additionalProcessing) additionalProcessing(cls);
return cls;
};
}
if (parentClass) {
DecoratorFactory.prototype = Object.create(parentClass.prototype);
}
DecoratorFactory.prototype.ngMetadataName = name;
DecoratorFactory.annotationCls = DecoratorFactory;
return DecoratorFactory;
});
}
function makeMetadataCtor(props) {
return function ctor() {
if (props) {
var values = props.apply(void 0, arguments);
for (var propName in values) {
this[propName] = values[propName];
}
}
};
}
function makeParamDecorator(name, props, parentClass) {
return noSideEffects(function () {
var metaCtor = makeMetadataCtor(props);
function ParamDecoratorFactory() {
for (var _len0 = arguments.length, args = new Array(_len0), _key1 = 0; _key1 < _len0; _key1++) {
args[_key1] = arguments[_key1];
}
if (this instanceof ParamDecoratorFactory) {
metaCtor.apply(this, args);
return this;
}
var annotationInstance = _construct(ParamDecoratorFactory, args);
ParamDecorator.annotation = annotationInstance;
return ParamDecorator;
function ParamDecorator(cls, unusedKey, index) {
// Use of Object.defineProperty is important since it creates non-enumerable property which
// prevents the property is copied during subclassing.
var parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, {
value: []
})[PARAMETERS]; // there might be gaps if some in between parameters do not have annotations.
// we pad with nulls.
while (parameters.length <= index) {
parameters.push(null);
}
(parameters[index] = parameters[index] || []).push(annotationInstance);
return cls;
}
}
if (parentClass) {
ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);
}
ParamDecoratorFactory.prototype.ngMetadataName = name;
ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;
return ParamDecoratorFactory;
});
}
function makePropDecorator(name, props, parentClass, additionalProcessing) {
return noSideEffects(function () {
var metaCtor = makeMetadataCtor(props);
function PropDecoratorFactory() {
for (var _len1 = arguments.length, args = new Array(_len1), _key10 = 0; _key10 < _len1; _key10++) {
args[_key10] = arguments[_key10];
}
if (this instanceof PropDecoratorFactory) {
metaCtor.apply(this, args);
return this;
}
var decoratorInstance = _construct(PropDecoratorFactory, args);
function PropDecorator(target, name) {
var constructor = target.constructor; // Use of Object.defineProperty is important since it creates non-enumerable property which
// prevents the property is copied during subclassing.
var meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {
value: {}
})[PROP_METADATA];
meta[name] = meta.hasOwnProperty(name) && meta[name] || [];
meta[name].unshift(decoratorInstance);
if (additionalProcessing) additionalProcessing.apply(void 0, [target, name].concat(args));
}
return PropDecorator;
}
if (parentClass) {
PropDecoratorFactory.prototype = Object.create(parentClass.prototype);
}
PropDecoratorFactory.prototype.ngMetadataName = name;
PropDecoratorFactory.annotationCls = PropDecoratorFactory;
return PropDecoratorFactory;
});
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/di/metadata.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Type of the Inject decorator / constructor function.
*
* \@publicApi
* @record
*/
function InjectDecorator() {} // WARNING: interface has both a type and a value, skipping emit
var ɵ0 =
/**
* @param {?} token
* @return {?}
*/
function ɵ0(token) {
return {
token: token
};
};
/**
* Inject decorator and metadata.
*
* \@Annotation
* \@publicApi
* @type {?}
*/
var Inject =
/*@__PURE__*/
makeParamDecorator('Inject', ɵ0);
/**
* Type of the Optional decorator / constructor function.
*
* \@publicApi
* @record
*/
function OptionalDecorator() {} // WARNING: interface has both a type and a value, skipping emit
/**
* Optional decorator and metadata.
*
* \@Annotation
* \@publicApi
* @type {?}
*/
var Optional =
/*@__PURE__*/
makeParamDecorator('Optional');
/**
* Type of the Self decorator / constructor function.
*
* \@publicApi
* @record
*/
function SelfDecorator() {} // WARNING: interface has both a type and a value, skipping emit
/**
* Self decorator and metadata.
*
* \@Annotation
* \@publicApi
* @type {?}
*/
var Self =
/*@__PURE__*/
makeParamDecorator('Self');
/**
* Type of the SkipSelf decorator / constructor function.
*
* \@publicApi
* @record
*/
function SkipSelfDecorator() {} // WARNING: interface has both a type and a value, skipping emit
/**
* SkipSelf decorator and metadata.
*
* \@Annotation
* \@publicApi
* @type {?}
*/
var SkipSelf =
/*@__PURE__*/
makeParamDecorator('SkipSelf');
/**
* Type of the Host decorator / constructor function.
*
* \@publicApi
* @record
*/
function HostDecorator() {} // WARNING: interface has both a type and a value, skipping emit
/**
* Host decorator and metadata.
*
* \@Annotation
* \@publicApi
* @type {?}
*/
var Host =
/*@__PURE__*/
makeParamDecorator('Host');
/**
* Type of the Attribute decorator / constructor function.
*
* \@publicApi
* @record
*/
function AttributeDecorator() {} // WARNING: interface has both a type and a value, skipping emit
var ɵ1 =
/**
* @param {?=} attributeName
* @return {?}
*/
function ɵ1(attributeName) {
return {
attributeName: attributeName
};
};
/**
* Attribute decorator and metadata.
*
* \@Annotation
* \@publicApi
* @type {?}
*/
var Attribute =
/*@__PURE__*/
makeParamDecorator('Attribute', ɵ1);
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Injection flags for DI.
*
* @publicApi
*/
var InjectFlags =
/*@__PURE__*/
function (InjectFlags) {
// TODO(alxhub): make this 'const' when ngc no longer writes exports of it into ngfactory files.
/** Check self and check parent injector if needed */
InjectFlags[InjectFlags["Default"] = 0] = "Default";
/**
* Specifies that an injector should retrieve a dependency from any injector until reaching the
* host element of the current component. (Only used with Element Injector)
*/
InjectFlags[InjectFlags["Host"] = 1] = "Host";
/** Don't ascend to ancestors of the node requesting injection. */
InjectFlags[InjectFlags["Self"] = 2] = "Self";
/** Skip the node that is requesting injection. */
InjectFlags[InjectFlags["SkipSelf"] = 4] = "SkipSelf";
/** Inject `defaultValue` instead if token not found. */
InjectFlags[InjectFlags["Optional"] = 8] = "Optional";
return InjectFlags;
}({});
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function getClosureSafeProperty(objWithPropertyToExtract) {
for (var key in objWithPropertyToExtract) {
if (objWithPropertyToExtract[key] === getClosureSafeProperty) {
return key;
}
}
throw Error('Could not find renamed property on target object.');
}
/**
* Sets properties on a target object from a source object, but only if
* the property doesn't already exist on the target object.
* @param target The target to set properties on
* @param source The source of the property keys and values to set
*/
function fillProperties(target, source) {
for (var key in source) {
if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {
target[key] = source[key];
}
}
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Construct an `InjectableDef` which defines how a token will be constructed by the DI system, and
* in which injectors (if any) it will be available.
*
* This should be assigned to a static `ɵprov` field on a type, which will then be an
* `InjectableType`.
*
* Options:
* * `providedIn` determines which injectors will include the injectable, by either associating it
* with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be
* provided in the `'root'` injector, which will be the application-level injector in most apps.
* * `factory` gives the zero argument function which will create an instance of the injectable.
* The factory can call `inject` to access the `Injector` and request injection of dependencies.
*
* @codeGenApi
*/
function ɵɵdefineInjectable(opts) {
return {
token: opts.token,
providedIn: opts.providedIn || null,
factory: opts.factory,
value: undefined
};
}
/**
* @deprecated in v8, delete after v10. This API should be used only be generated code, and that
* code should now use ɵɵdefineInjectable instead.
* @publicApi
*/
var defineInjectable = ɵɵdefineInjectable;
/**
* Construct an `InjectorDef` which configures an injector.
*
* This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an
* `InjectorType`.
*
* Options:
*
* * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
* create the type must be provided. If that factory function needs to inject arguments, it can
* use the `inject` function.
* * `providers`: an optional array of providers to add to the injector. Each provider must
* either have a factory or point to a type which has a `ɵprov` static property (the
* type must be an `InjectableType`).
* * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s
* whose providers will also be added to the injector. Locally provided types will override
* providers from imports.
*
* @publicApi
*/
function ɵɵdefineInjector(options) {
return {
factory: options.factory,
providers: options.providers || [],
imports: options.imports || []
};
}
/**
* Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading
* inherited value.
*
* @param type A type which may have its own (non-inherited) `ɵprov`.
*/
function getInjectableDef(type) {
return getOwnDefinition(type, type[NG_PROV_DEF]) || getOwnDefinition(type, type[NG_INJECTABLE_DEF]);
}
/**
* Return `def` only if it is defined directly on `type` and is not inherited from a base
* class of `type`.
*
* The function `Object.hasOwnProperty` is not sufficient to distinguish this case because in older
* browsers (e.g. IE10) static property inheritance is implemented by copying the properties.
*
* Instead, the definition's `token` is compared to the `type`, and if they don't match then the
* property was not defined directly on the type itself, and was likely inherited. The definition
* is only returned if the `type` matches the `def.token`.
*/
function getOwnDefinition(type, def) {
return def && def.token === type ? def : null;
}
/**
* Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.
*
* @param type A type which may have `ɵprov`, via inheritance.
*
* @deprecated Will be removed in v10, where an error will occur in the scenario if we find the
* `ɵprov` on an ancestor only.
*/
function getInheritedInjectableDef(type) {
// See `jit/injectable.ts#compileInjectable` for context on NG_PROV_DEF_FALLBACK.
var def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF] || type[NG_PROV_DEF_FALLBACK] && type[NG_PROV_DEF_FALLBACK]());
if (def) {
var _typeName = getTypeName(type); // TODO(FW-1307): Re-add ngDevMode when closure can handle it
// ngDevMode &&
console.warn("DEPRECATED: DI is instantiating a token \"".concat(_typeName, "\" that inherits its @Injectable decorator but does not provide one itself.\n") + "This will become an error in v10. Please add @Injectable() to the \"".concat(_typeName, "\" class."));
return def;
} else {
return null;
}
}
/** Gets the name of a type, accounting for some cross-browser differences. */
function getTypeName(type) {
// `Function.prototype.name` behaves differently between IE and other browsers. In most browsers
// it'll always return the name of the function itself, no matter how many other functions it
// inherits from. On IE the function doesn't have its own `name` property, but it takes it from
// the lowest level in the prototype chain. E.g. if we have `class Foo extends Parent` most
// browsers will evaluate `Foo.name` to `Foo` while IE will return `Parent`. We work around
// the issue by converting the function to a string and parsing its name out that way via a regex.
if (type.hasOwnProperty('name')) {
return type.name;
}
var match = ('' + type).match(/^function\s*([^\s(]+)/);
return match === null ? '' : match[1];
}
/**
* Read the injector def type in a way which is immune to accidentally reading inherited value.
*
* @param type type which may have an injector def (`ɵinj`)
*/
function getInjectorDef(type) {
return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;
}
var NG_PROV_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵprov: getClosureSafeProperty
});
var NG_INJ_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵinj: getClosureSafeProperty
}); // On IE10 properties defined via `defineProperty` won't be inherited by child classes,
// which will break inheriting the injectable definition from a grandparent through an
// undecorated parent class. We work around it by defining a fallback method which will be
// used to retrieve the definition. This should only be a problem in JIT mode, because in
// AOT TypeScript seems to have a workaround for static properties. When inheriting from an
// undecorated parent is no longer supported in v10, this can safely be removed.
var NG_PROV_DEF_FALLBACK =
/*@__PURE__*/
getClosureSafeProperty({
ɵprovFallback: getClosureSafeProperty
}); // We need to keep these around so we can read off old defs if new defs are unavailable
var NG_INJECTABLE_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ngInjectableDef: getClosureSafeProperty
});
var NG_INJECTOR_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ngInjectorDef: getClosureSafeProperty
});
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function stringify(token) {
if (typeof token === 'string') {
return token;
}
if (Array.isArray(token)) {
return '[' + token.map(stringify).join(', ') + ']';
}
if (token == null) {
return '' + token;
}
if (token.overriddenName) {
return "".concat(token.overriddenName);
}
if (token.name) {
return "".concat(token.name);
}
var res = token.toString();
if (res == null) {
return '' + res;
}
var newLineIndex = res.indexOf('\n');
return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
}
/**
* Concatenates two strings with separator, allocating new strings only when necessary.
*
* @param before before string.
* @param separator separator string.
* @param after after string.
* @returns concatenated string.
*/
function concatStringsWithSpace(before, after) {
return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/di/forward_ref.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* An interface that a function passed into {\@link forwardRef} has to implement.
*
* \@usageNotes
* ### Example
*
* {\@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref_fn'}
* \@publicApi
* @record
*/
function ForwardRefFn() {}
/** @type {?} */
var __forward_ref__ =
/*@__PURE__*/
getClosureSafeProperty({
__forward_ref__: getClosureSafeProperty
});
/**
* Allows to refer to references which are not yet defined.
*
* For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
* DI is declared, but not yet defined. It is also used when the `token` which we use when creating
* a query is not yet defined.
*
* \@usageNotes
* ### Example
* {\@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
* \@publicApi
* @param {?} forwardRefFn
* @return {?}
*/
function forwardRef(forwardRefFn) {
/** @type {?} */
forwardRefFn.__forward_ref__ = forwardRef;
/** @type {?} */
forwardRefFn.toString =
/**
* @return {?}
*/
function () {
return stringify(this());
};
return (
/** @type {?} */
/** @type {?} */
forwardRefFn
);
}
/**
* Lazily retrieves the reference value from a forwardRef.
*
* Acts as the identity function when given a non-forward-ref value.
*
* \@usageNotes
* ### Example
*
* {\@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
*
* @see `forwardRef`
* \@publicApi
* @template T
* @param {?} type
* @return {?}
*/
function resolveForwardRef(type) {
return isForwardRef(type) ? type() : type;
}
/**
* Checks whether a function is wrapped by a `forwardRef`.
* @param {?} fn
* @return {?}
*/
function isForwardRef(fn) {
return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __globalThis = typeof globalThis !== 'undefined' && globalThis;
var __window = typeof window !== 'undefined' && window;
var __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope && self;
var __global = typeof global !== 'undefined' && global; // Always use __globalThis if available, which is the spec-defined global variable across all
// environments, then fallback to __global first, because in Node tests both __global and
// __window may be defined and _global should be __global in that case.
var _global = __globalThis || __global || __window || __self;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var R3ResolvedDependencyType =
/*@__PURE__*/
function (R3ResolvedDependencyType) {
R3ResolvedDependencyType[R3ResolvedDependencyType["Token"] = 0] = "Token";
R3ResolvedDependencyType[R3ResolvedDependencyType["Attribute"] = 1] = "Attribute";
R3ResolvedDependencyType[R3ResolvedDependencyType["ChangeDetectorRef"] = 2] = "ChangeDetectorRef";
R3ResolvedDependencyType[R3ResolvedDependencyType["Invalid"] = 3] = "Invalid";
return R3ResolvedDependencyType;
}({});
var R3FactoryTarget =
/*@__PURE__*/
function (R3FactoryTarget) {
R3FactoryTarget[R3FactoryTarget["Directive"] = 0] = "Directive";
R3FactoryTarget[R3FactoryTarget["Component"] = 1] = "Component";
R3FactoryTarget[R3FactoryTarget["Injectable"] = 2] = "Injectable";
R3FactoryTarget[R3FactoryTarget["Pipe"] = 3] = "Pipe";
R3FactoryTarget[R3FactoryTarget["NgModule"] = 4] = "NgModule";
return R3FactoryTarget;
}({});
var ViewEncapsulation =
/*@__PURE__*/
function (ViewEncapsulation) {
ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated";
ViewEncapsulation[ViewEncapsulation["Native"] = 1] = "Native";
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
return ViewEncapsulation;
}({});
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function getCompilerFacade() {
var globalNg = _global['ng'];
if (!globalNg || !globalNg.ɵcompilerFacade) {
throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n" + " - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n" + " - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n" + " - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");
}
return globalNg.ɵcompilerFacade;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/fields.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var NG_COMP_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵcmp: getClosureSafeProperty
});
/** @type {?} */
var NG_DIR_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵdir: getClosureSafeProperty
});
/** @type {?} */
var NG_PIPE_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵpipe: getClosureSafeProperty
});
/** @type {?} */
var NG_MOD_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵmod: getClosureSafeProperty
});
/** @type {?} */
var NG_LOC_ID_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵloc: getClosureSafeProperty
});
/** @type {?} */
var NG_FACTORY_DEF =
/*@__PURE__*/
getClosureSafeProperty({
ɵfac: getClosureSafeProperty
}); // TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.
/**
* If a directive is diPublic, bloomAdd sets a property on the type with this constant as
* the key and the directive's unique ID as the value. This allows us to map directives to their
* bloom filter bit for DI.
* @type {?}
*/
var NG_ELEMENT_ID =
/*@__PURE__*/
getClosureSafeProperty({
__NG_ELEMENT_ID__: getClosureSafeProperty
});
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function ngDevModeResetPerfCounters() {
var locationString = typeof location !== 'undefined' ? location.toString() : '';
var newCounters = {
namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,
firstCreatePass: 0,
tNode: 0,
tView: 0,
rendererCreateTextNode: 0,
rendererSetText: 0,
rendererCreateElement: 0,
rendererAddEventListener: 0,
rendererSetAttribute: 0,
rendererRemoveAttribute: 0,
rendererSetProperty: 0,
rendererSetClassName: 0,
rendererAddClass: 0,
rendererRemoveClass: 0,
rendererSetStyle: 0,
rendererRemoveStyle: 0,
rendererDestroy: 0,
rendererDestroyNode: 0,
rendererMoveNode: 0,
rendererRemoveNode: 0,
rendererAppendChild: 0,
rendererInsertBefore: 0,
rendererCreateComment: 0
}; // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
var allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;
_global['ngDevMode'] = allowNgDevModeTrue && newCounters;
return newCounters;
}
/**
* This function checks to see if the `ngDevMode` has been set. If yes,
* then we honor it, otherwise we default to dev mode with additional checks.
*
* The idea is that unless we are doing production build where we explicitly
* set `ngDevMode == false` we should be helping the developer by providing
* as much early warning and errors as possible.
*
* `ɵɵdefineComponent` is guaranteed to have been called before any component template functions
* (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode
* is defined for the entire instruction set.
*
* When using checking `ngDevMode` on toplevel, always init it before referencing it
* (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can
* get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.
*
* Details on possible values for `ngDevMode` can be found on its docstring.
*
* NOTE:
* - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.
*/
function initNgDevMode() {
// The below checks are to ensure that calling `initNgDevMode` multiple times does not
// reset the counters.
// If the `ngDevMode` is not an object, then it means we have not created the perf counters
// yet.
if (typeof ngDevMode === 'undefined' || ngDevMode) {
if (typeof ngDevMode !== 'object') {
ngDevModeResetPerfCounters();
}
return !!ngDevMode;
}
return false;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/di/injection_token.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Creates a token that can be used in a DI Provider.
*
* Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a
* runtime representation) such as when injecting an interface, callable type, array or
* parameterized type.
*
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
* the `Injector`. This provides additional level of type safety.
*
* ```
* interface MyInterface {...}
* var myInterface = injector.get(new InjectionToken('SomeToken'));
* // myInterface is inferred to be MyInterface.
* ```
*
* When creating an `InjectionToken`, you can optionally specify a factory function which returns
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
* `InjectionToken` using this factory as a provider as if it was defined explicitly in the
* application's root injector. If the factory function, which takes zero arguments, needs to inject
* dependencies, it can do so using the `inject` function. See below for an example.
*
* Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
* overrides the above behavior and marks the token as belonging to a particular `\@NgModule`. As
* mentioned above, `'root'` is the default value for `providedIn`.
*
* \@usageNotes
* ### Basic Example
*
* ### Plain InjectionToken
*
* {\@example core/di/ts/injector_spec.ts region='InjectionToken'}
*
* ### Tree-shakable InjectionToken
*
* {\@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
*
*
* \@publicApi
* @template T
*/
var InjectionToken =
/*#__PURE__*/
function () {
/**
* @param {?} _desc
* @param {?=} options
*/
function InjectionToken(_desc, options) {
_classCallCheck(this, InjectionToken);
this._desc = _desc;
/**
* \@internal
*/
this.ngMetadataName = 'InjectionToken';
/** @nocollapse */
this.ɵprov = undefined;
if (typeof options == 'number') {
// This is a special hack to assign __NG_ELEMENT_ID__ to this instance.
// __NG_ELEMENT_ID__ is Used by Ivy to determine bloom filter id.
// We are using it to assign `-1` which is used to identify `Injector`.
/** @type {?} */
this.__NG_ELEMENT_ID__ = options;
} else if (options !== undefined) {
/** @nocollapse */
this.ɵprov = ɵɵdefineInjectable({
token: this,
providedIn: options.providedIn || 'root',
factory: options.factory
});
}
}
/**
* @return {?}
*/
return _createClass2(InjectionToken, [{
key: "toString",
value: function toString() {
return "InjectionToken ".concat(this._desc);
}
}]);
}();
if (false) {}
/**
* @record
* @template T
*/
function InjectableDefToken() {}
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/di/injector_compatibility.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.
*
* Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a
* project.
*
* \@publicApi
* @type {?}
*/
var INJECTOR =
/*@__PURE__*/
new InjectionToken('INJECTOR',
/** @type {?} */
-1);
/** @type {?} */
var _THROW_IF_NOT_FOUND = {};
/** @type {?} */
var THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;
/** @type {?} */
var NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';
/** @type {?} */
var NG_TOKEN_PATH = 'ngTokenPath';
/** @type {?} */
var NEW_LINE = /\n/gm;
/** @type {?} */
var NO_NEW_LINE = 'ɵ';
/** @type {?} */
var SOURCE = '__source';
var ɵ0$1 = getClosureSafeProperty;
/** @type {?} */
var USE_VALUE =
/*@__PURE__*/
getClosureSafeProperty({
provide: String,
useValue: ɵ0$1
});
/**
* Current injector value used by `inject`.
* - `undefined`: it is an error to call `inject`
* - `null`: `inject` can be called but there is no injector (limp-mode).
* - Injector instance: Use the injector for resolution.
* @type {?}
*/
var _currentInjector = undefined;
/**
* @param {?} injector
* @return {?}
*/
function setCurrentInjector(injector) {
/** @type {?} */
var former = _currentInjector;
_currentInjector = injector;
return former;
}
/**
* Current implementation of inject.
*
* By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed
* to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this
* way for two reasons:
* 1. `Injector` should not depend on ivy logic.
* 2. To maintain tree shake-ability we don't want to bring in unnecessary code.
* @type {?}
*/
var _injectImplementation;
/**
* Sets the current inject implementation.
* @param {?} impl
* @return {?}
*/
function setInjectImplementation(impl) {
/** @type {?} */
var previous = _injectImplementation;
_injectImplementation = impl;
return previous;
}
/**
* @template T
* @param {?} token
* @param {?=} flags
* @return {?}
*/
function injectInjectorOnly(token) {
var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : InjectFlags.Default;
if (_currentInjector === undefined) {
throw new Error("inject() must be called from an injection context");
} else if (_currentInjector === null) {
return injectRootLimpMode(token, undefined, flags);
} else {
return _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);
}
}
/**
* @template T
* @param {?} token
* @param {?=} flags
* @return {?}
*/
function ɵɵinject(token) {
var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : InjectFlags.Default;
return (_injectImplementation || injectInjectorOnly)(resolveForwardRef(token), flags);
}
/**
* Throws an error indicating that a factory function could not be generated by the compiler for a
* particular class.
*
* This instruction allows the actual error message to be optimized away when ngDevMode is turned
* off, saving bytes of generated code while still providing a good experience in dev mode.
*
* The name of the class is not mentioned here, but will be in the generated factory function name
* and thus in the stack trace.
*
* \@codeGenApi
* @param {?} index
* @return {?}
*/
function ɵɵinvalidFactoryDep(index) {
/** @type {?} */
var msg = ngDevMode ? "This constructor is not compatible with Angular Dependency Injection because its dependency at index ".concat(index, " of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ").concat(index, " is correct and 2) the correct Angular decorators are defined for this class and its ancestors.") : 'invalid';
throw new Error(msg);
}
/**
* Injects a token from the currently active injector.
*
* Must be used in the context of a factory function such as one defined for an
* `InjectionToken`. Throws an error if not called from such a context.
*
* Within such a factory function, using this function to request injection of a dependency
* is faster and more type-safe than providing an additional array of dependencies
* (as has been common with `useFactory` providers).
*
* \@param token The injection token for the dependency to be injected.
* \@param flags Optional flags that control how injection is executed.
* The flags correspond to injection strategies that can be specified with
* parameter decorators `\@Host`, `\@Self`, `\@SkipSef`, and `\@Optional`.
* \@return True if injection is successful, null otherwise.
*
* \@usageNotes
*
* ### Example
*
* {\@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
*
* \@publicApi
* @type {?}
*/
var inject = ɵɵinject;
/**
* Injects `root` tokens in limp mode.
*
* If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to
* `"root"`. This is known as the limp mode injection. In such case the value is stored in the
* `InjectableDef`.
* @template T
* @param {?} token
* @param {?} notFoundValue
* @param {?} flags
* @return {?}
*/
function injectRootLimpMode(token, notFoundValue, flags) {
/** @type {?} */
var injectableDef = getInjectableDef(token);
if (injectableDef && injectableDef.providedIn == 'root') {
return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;
}
if (flags & InjectFlags.Optional) return null;
if (notFoundValue !== undefined) return notFoundValue;
throw new Error("Injector: NOT_FOUND [".concat(stringify(token), "]"));
}
/**
* @param {?} types
* @return {?}
*/
function injectArgs(types) {
/** @type {?} */
var args = [];
for (var i = 0; i < types.length; i++) {
/** @type {?} */
var arg = resolveForwardRef(types[i]);
if (Array.isArray(arg)) {
if (arg.length === 0) {
throw new Error('Arguments array must have arguments.');
}
/** @type {?} */
var type = undefined;
/** @type {?} */
var flags = InjectFlags.Default;
for (var j = 0; j < arg.length; j++) {
/** @type {?} */
var meta = arg[j];
if (meta instanceof Optional || meta.ngMetadataName === 'Optional' || meta === Optional) {
flags |= InjectFlags.Optional;
} else if (meta instanceof SkipSelf || meta.ngMetadataName === 'SkipSelf' || meta === SkipSelf) {
flags |= InjectFlags.SkipSelf;
} else if (meta instanceof Self || meta.ngMetadataName === 'Self' || meta === Self) {
flags |= InjectFlags.Self;
} else if (meta instanceof Inject || meta === Inject) {
type = meta.token;
} else {
type = meta;
}
}
args.push(ɵɵinject(
/** @type {?} */
type, flags));
} else {
args.push(ɵɵinject(arg));
}
}
return args;
}
var NullInjector =
/*#__PURE__*/
function () {
function NullInjector() {
_classCallCheck(this, NullInjector);
}
return _createClass2(NullInjector, [{
key: "get",
value:
/**
* @param {?} token
* @param {?=} notFoundValue
* @return {?}
*/
function get(token) {
var notFoundValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : THROW_IF_NOT_FOUND;
if (notFoundValue === THROW_IF_NOT_FOUND) {
// Intentionally left behind: With dev tools open the debugger will stop here. There is no
// reason why correctly written application should cause this exception.
// TODO(misko): uncomment the next line once `ngDevMode` works with closure.
// if (ngDevMode) debugger;
/** @type {?} */
var error = new Error("NullInjectorError: No provider for ".concat(stringify(token), "!"));
error.name = 'NullInjectorError';
throw error;
}
return notFoundValue;
}
}]);
}();
/**
* @param {?} e
* @param {?} token
* @param {?} injectorErrorName
* @param {?} source
* @return {?}
*/
function catchInjectorError(e, token, injectorErrorName, source) {
/** @type {?} */
var tokenPath = e[NG_TEMP_TOKEN_PATH];
if (token[SOURCE]) {
tokenPath.unshift(token[SOURCE]);
}
e.message = formatError('\n' + e.message, tokenPath, injectorErrorName, source);
e[NG_TOKEN_PATH] = tokenPath;
e[NG_TEMP_TOKEN_PATH] = null;
throw e;
}
/**
* @param {?} text
* @param {?} obj
* @param {?} injectorErrorName
* @param {?=} source
* @return {?}
*/
function formatError(text, obj, injectorErrorName) {
var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.substr(2) : text;
/** @type {?} */
var context = stringify(obj);
if (Array.isArray(obj)) {
context = obj.map(stringify).join(' -> ');
} else if (typeof obj === 'object') {
/** @type {?} */
var parts =
/** @type {?} */
[];
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
/** @type {?} */
var value = obj[key];
parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));
}
}
context = "{".concat(parts.join(', '), "}");
}
return "".concat(injectorErrorName).concat(source ? '(' + source + ')' : '', "[").concat(context, "]: ").concat(text.replace(NEW_LINE, '\n '));
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/di/jit/environment.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* A mapping of the \@angular/core API surface used in generated expressions to the actual symbols.
*
* This should be kept up to date with the public exports of \@angular/core.
* @type {?}
*/
var angularCoreDiEnv = {
'ɵɵdefineInjectable': ɵɵdefineInjectable,
'ɵɵdefineInjector': ɵɵdefineInjector,
'ɵɵinject': ɵɵinject,
'ɵɵgetFactoryOf': getFactoryOf,
'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep
};
/**
* @template T
* @param {?} type
* @return {?}
*/
function getFactoryOf(type) {
/** @type {?} */
var typeAny =
/** @type {?} */
type;
if (isForwardRef(type)) {
return (
/** @type {?} */
/**
* @return {?}
*/
function () {
/** @type {?} */
var factory = getFactoryOf(resolveForwardRef(typeAny));
return factory ? factory() : null;
}
);
}
/** @type {?} */
var def = getInjectableDef(typeAny) || getInjectorDef(typeAny);
if (!def || def.factory === undefined) {
return null;
}
return def.factory;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/linker/ng_module_factory.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Represents an instance of an NgModule created via a {\@link NgModuleFactory}.
*
* `NgModuleRef` provides access to the NgModule Instance as well other objects related to this
* NgModule Instance.
*
* \@publicApi
* @abstract
* @template T
*/
var NgModuleRef =
/*#__PURE__*/
_createClass2(function NgModuleRef() {
_classCallCheck(this, NgModuleRef);
});
if (false) {}
/**
* @record
* @template T
*/
function InternalNgModuleRef() {}
if (false) {}
/**
* \@publicApi
* @abstract
* @template T
*/
var NgModuleFactory =
/*#__PURE__*/
_createClass2(function NgModuleFactory() {
_classCallCheck(this, NgModuleFactory);
});
if (false) {}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function assertNumber(actual, msg) {
if (!(typeof actual === 'number')) {
throwError(msg, typeof actual, 'number', '===');
}
}
function assertNumberInRange(actual, minInclusive, maxInclusive) {
assertNumber(actual, 'Expected a number');
assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');
assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');
}
function assertString(actual, msg) {
if (!(typeof actual === 'string')) {
throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
}
}
function assertEqual(actual, expected, msg) {
if (!(actual == expected)) {
throwError(msg, actual, expected, '==');
}
}
function assertNotEqual(actual, expected, msg) {
if (!(actual != expected)) {
throwError(msg, actual, expected, '!=');
}
}
function assertSame(actual, expected, msg) {
if (!(actual === expected)) {
throwError(msg, actual, expected, '===');
}
}
function assertNotSame(actual, expected, msg) {
if (!(actual !== expected)) {
throwError(msg, actual, expected, '!==');
}
}
function assertLessThan(actual, expected, msg) {
if (!(actual < expected)) {
throwError(msg, actual, expected, '<');
}
}
function assertLessThanOrEqual(actual, expected, msg) {
if (!(actual <= expected)) {
throwError(msg, actual, expected, '<=');
}
}
function assertGreaterThan(actual, expected, msg) {
if (!(actual > expected)) {
throwError(msg, actual, expected, '>');
}
}
function assertGreaterThanOrEqual(actual, expected, msg) {
if (!(actual >= expected)) {
throwError(msg, actual, expected, '>=');
}
}
function assertNotDefined(actual, msg) {
if (actual != null) {
throwError(msg, actual, null, '==');
}
}
function assertDefined(actual, msg) {
if (actual == null) {
throwError(msg, actual, null, '!=');
}
}
function throwError(msg, actual, expected, comparison) {
throw new Error("ASSERTION ERROR: ".concat(msg) + (comparison == null ? '' : " [Expected=> ".concat(expected, " ").concat(comparison, " ").concat(actual, " <=Actual]")));
}
function assertDomNode(node) {
// If we're in a worker, `Node` will not be defined.
assertEqual(typeof Node !== 'undefined' && node instanceof Node || typeof node === 'object' && node != null && node.constructor.name === 'WebWorkerRenderNode', true, "The provided value must be an instance of a DOM Node but got ".concat(stringify(node)));
}
function assertDataInRange(arr, index) {
var maxLen = arr ? arr.length : 0;
assertLessThan(index, maxLen, "Index expected to be less than ".concat(maxLen, " but got ").concat(index));
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Equivalent to ES6 spread, add each item to an array.
*
* @param items The items to add
* @param arr The array to which you want to add the items
*/
function addAllToArray(items, arr) {
for (var i = 0; i < items.length; i++) {
arr.push(items[i]);
}
}
/**
* Flattens an array.
*/
function flatten(list, dst) {
if (dst === undefined) dst = list;
for (var i = 0; i < list.length; i++) {
var item = list[i];
if (Array.isArray(item)) {
// we need to inline it.
if (dst === list) {
// Our assumption that the list was already flat was wrong and
// we need to clone flat since we need to write to it.
dst = list.slice(0, i);
}
flatten(item, dst);
} else if (dst !== list) {
dst.push(item);
}
}
return dst;
}
function deepForEach(input, fn) {
input.forEach(function (value) {
return Array.isArray(value) ? deepForEach(value, fn) : fn(value);
});
}
function addToArray(arr, index, value) {
// perf: array.push is faster than array.splice!
if (index >= arr.length) {
arr.push(value);
} else {
arr.splice(index, 0, value);
}
}
function removeFromArray(arr, index) {
// perf: array.pop is faster than array.splice!
if (index >= arr.length - 1) {
return arr.pop();
} else {
return arr.splice(index, 1)[0];
}
}
function newArray(size, value) {
var list = [];
for (var i = 0; i < size; i++) {
list.push(value);
}
return list;
}
/**
* Remove item from array (Same as `Array.splice()` but faster.)
*
* `Array.splice()` is not as fast because it has to allocate an array for the elements which were
* removed. This causes memory pressure and slows down code when most of the time we don't
* care about the deleted items array.
*
* https://jsperf.com/fast-array-splice (About 20x faster)
*
* @param array Array to splice
* @param index Index of element in array to remove.
* @param count Number of items to remove.
*/
function arraySplice(array, index, count) {
var length = array.length - count;
while (index < length) {
array[index] = array[index + count];
index++;
}
while (count--) {
array.pop(); // shrink the array
}
}
/**
* Same as `Array.splice(index, 0, value)` but faster.
*
* `Array.splice()` is not fast because it has to allocate an array for the elements which were
* removed. This causes memory pressure and slows down code when most of the time we don't
* care about the deleted items array.
*
* @param array Array to splice.
* @param index Index in array where the `value` should be added.
* @param value Value to add to array.
*/
function arrayInsert(array, index, value) {
ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
var end = array.length;
while (end > index) {
var previousEnd = end - 1;
array[end] = array[previousEnd];
end = previousEnd;
}
array[index] = value;
}
/**
* Same as `Array.splice2(index, 0, value1, value2)` but faster.
*
* `Array.splice()` is not fast because it has to allocate an array for the elements which were
* removed. This causes memory pressure and slows down code when most of the time we don't
* care about the deleted items array.
*
* @param array Array to splice.
* @param index Index in array where the `value` should be added.
* @param value1 Value to add to array.
* @param value2 Value to add to array.
*/
function arrayInsert2(array, index, value1, value2) {
ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
var end = array.length;
if (end == index) {
// inserting at the end.
array.push(value1, value2);
} else if (end === 1) {
// corner case when we have less items in array than we have items to insert.
array.push(value2, array[0]);
array[0] = value1;
} else {
end--;
array.push(array[end - 1], array[end]);
while (end > index) {
var previousEnd = end - 2;
array[end] = array[previousEnd];
end--;
}
array[index] = value1;
array[index + 1] = value2;
}
}
/**
* Insert a `value` into an `array` so that the array remains sorted.
*
* NOTE:
* - Duplicates are not allowed, and are ignored.
* - This uses binary search algorithm for fast inserts.
*
* @param array A sorted array to insert into.
* @param value The value to insert.
* @returns index of the inserted value.
*/
function arrayInsertSorted(array, value) {
var index = arrayIndexOfSorted(array, value);
if (index < 0) {
// if we did not find it insert it.
index = ~index;
arrayInsert(array, index, value);
}
return index;
}
/**
* Remove `value` from a sorted `array`.
*
* NOTE:
* - This uses binary search algorithm for fast removals.
*
* @param array A sorted array to remove from.
* @param value The value to remove.
* @returns index of the removed value.
* - positive index if value found and removed.
* - negative index if value not found. (`~index` to get the value where it should have been
* inserted)
*/
function arrayRemoveSorted(array, value) {
var index = arrayIndexOfSorted(array, value);
if (index >= 0) {
arraySplice(array, index, 1);
}
return index;
}
/**
* Get an index of an `value` in a sorted `array`.
*
* NOTE:
* - This uses binary search algorithm for fast removals.
*
* @param array A sorted array to binary search.
* @param value The value to look for.
* @returns index of the value.
* - positive index if value found.
* - negative index if value not found. (`~index` to get the value where it should have been
* located)
*/
function arrayIndexOfSorted(array, value) {
return _arrayIndexOfSorted(array, value, 0);
}
/**
* Set a `value` for a `key`.
*
* @param keyValueArray to modify.
* @param key The key to locate or create.
* @param value The value to set for a `key`.
* @returns index (always even) of where the value vas set.
*/
function keyValueArraySet(keyValueArray, key, value) {
var index = keyValueArrayIndexOf(keyValueArray, key);
if (index >= 0) {
// if we found it set it.
keyValueArray[index | 1] = value;
} else {
index = ~index;
arrayInsert2(keyValueArray, index, key, value);
}
return index;
}
/**
* Retrieve a `value` for a `key` (on `undefined` if not found.)
*
* @param keyValueArray to search.
* @param key The key to locate.
* @return The `value` stored at the `key` location or `undefined if not found.
*/
function keyValueArrayGet(keyValueArray, key) {
var index = keyValueArrayIndexOf(keyValueArray, key);
if (index >= 0) {
// if we found it retrieve it.
return keyValueArray[index | 1];
}
return undefined;
}
/**
* Retrieve a `key` index value in the array or `-1` if not found.
*
* @param keyValueArray to search.
* @param key The key to locate.
* @returns index of where the key is (or should have been.)
* - positive (even) index if key found.
* - negative index if key not found. (`~index` (even) to get the index where it should have
* been inserted.)
*/
function keyValueArrayIndexOf(keyValueArray, key) {
return _arrayIndexOfSorted(keyValueArray, key, 1);
}
/**
* Delete a `key` (and `value`) from the `KeyValueArray`.
*
* @param keyValueArray to modify.
* @param key The key to locate or delete (if exist).
* @returns index of where the key was (or should have been.)
* - positive (even) index if key found and deleted.
* - negative index if key not found. (`~index` (even) to get the index where it should have
* been.)
*/
function keyValueArrayDelete(keyValueArray, key) {
var index = keyValueArrayIndexOf(keyValueArray, key);
if (index >= 0) {
// if we found it remove it.
arraySplice(keyValueArray, index, 2);
}
return index;
}
/**
* INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.
*
* NOTE:
* - This uses binary search algorithm for fast removals.
*
* @param array A sorted array to binary search.
* @param value The value to look for.
* @param shift grouping shift.
* - `0` means look at every location
* - `1` means only look at every other (even) location (the odd locations are to be ignored as
* they are values.)
* @returns index of the value.
* - positive index if value found.
* - negative index if value not found. (`~index` to get the value where it should have been
* inserted)
*/
function _arrayIndexOfSorted(array, value, shift) {
ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');
var start = 0;
var end = array.length >> shift;
while (end !== start) {
var middle = start + (end - start >> 1); // find the middle.
var current = array[middle << shift];
if (value === current) {
return middle << shift;
} else if (current > value) {
end = middle;
} else {
start = middle + 1; // We already searched middle so make it non-inclusive by adding 1
}
}
return ~(end << shift);
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/change_detection/constants.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** @enum {number} */
var ChangeDetectionStrategy =
/*@__PURE__*/
function () {
var ChangeDetectionStrategy = {
/**
* Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
* until reactivated by setting the strategy to `Default` (`CheckAlways`).
* Change detection can still be explicitly invoked.
* This strategy applies to all child directives and cannot be overridden.
*/
OnPush: 0,
/**
* Use the default `CheckAlways` strategy, in which change detection is automatic until
* explicitly deactivated.
*/
Default: 1
};
ChangeDetectionStrategy[ChangeDetectionStrategy.OnPush] = 'OnPush';
ChangeDetectionStrategy[ChangeDetectionStrategy.Default] = 'Default';
return ChangeDetectionStrategy;
}();
/** @enum {number} */
var ChangeDetectorStatus =
/*@__PURE__*/
function () {
var ChangeDetectorStatus = {
/**
* A state in which, after calling `detectChanges()`, the change detector
* state becomes `Checked`, and must be explicitly invoked or reactivated.
*/
CheckOnce: 0,
/**
* A state in which change detection is skipped until the change detector mode
* becomes `CheckOnce`.
*/
Checked: 1,
/**
* A state in which change detection continues automatically until explicitly
* deactivated.
*/
CheckAlways: 2,
/**
* A state in which a change detector sub tree is not a part of the main tree and
* should be skipped.
*/
Detached: 3,
/**
* Indicates that the change detector encountered an error checking a binding
* or calling a directive lifecycle method and is now in an inconsistent state. Change
* detectors in this state do not detect changes.
*/
Errored: 4,
/**
* Indicates that the change detector has been destroyed.
*/
Destroyed: 5
};
ChangeDetectorStatus[ChangeDetectorStatus.CheckOnce] = 'CheckOnce';
ChangeDetectorStatus[ChangeDetectorStatus.Checked] = 'Checked';
ChangeDetectorStatus[ChangeDetectorStatus.CheckAlways] = 'CheckAlways';
ChangeDetectorStatus[ChangeDetectorStatus.Detached] = 'Detached';
ChangeDetectorStatus[ChangeDetectorStatus.Errored] = 'Errored';
ChangeDetectorStatus[ChangeDetectorStatus.Destroyed] = 'Destroyed';
return ChangeDetectorStatus;
}();
/**
* Reports whether a given strategy is currently the default for change detection.
* @see `ChangeDetectorStatus` / `ChangeDetectorRef`
* @param {?} changeDetectionStrategy The strategy to check.
* @return {?} True if the given strategy is the current default, false otherwise.
*/
function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {
return changeDetectionStrategy == null || changeDetectionStrategy === ChangeDetectionStrategy.Default;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/metadata/view.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** @enum {number} */
var ViewEncapsulation$1 =
/*@__PURE__*/
function () {
var ViewEncapsulation$1 = {
/**
* Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host
* Element and pre-processing the style rules provided via {@link Component#styles styles} or
* {@link Component#styleUrls styleUrls}, and adding the new Host Element attribute to all
* selectors.
*
* This is the default option.
*/
Emulated: 0,
/**
* @deprecated v6.1.0 - use {ViewEncapsulation.ShadowDom} instead.
* Use the native encapsulation mechanism of the renderer.
*
* For the DOM this means using the deprecated [Shadow DOM
* v0](https://w3c.github.io/webcomponents/spec/shadow/) and
* creating a ShadowRoot for Component's Host Element.
*/
Native: 1,
/**
* Don't provide any template or style encapsulation.
*/
None: 2,
/**
* Use Shadow DOM to encapsulate styles.
*
* For the DOM this means using modern [Shadow
* DOM](https://w3c.github.io/webcomponents/spec/shadow/) and
* creating a ShadowRoot for Component's Host Element.
*/
ShadowDom: 3
};
ViewEncapsulation$1[ViewEncapsulation$1.Emulated] = 'Emulated';
ViewEncapsulation$1[ViewEncapsulation$1.Native] = 'Native';
ViewEncapsulation$1[ViewEncapsulation$1.None] = 'None';
ViewEncapsulation$1[ViewEncapsulation$1.ShadowDom] = 'ShadowDom';
return ViewEncapsulation$1;
}();
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/empty.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* This file contains reuseable "empty" symbols that can be used as default return values
* in different parts of the rendering code. Because the same symbols are returned, this
* allows for identity checks against these values to be consistently used by the framework
* code.
* @type {?}
*/
var EMPTY_OBJ = {};
/** @type {?} */
var EMPTY_ARRAY = []; // freezing the values prevents any code from accidentally inserting new values in
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
/*@__PURE__*/
initNgDevMode()) {
// These property accesses can be ignored because ngDevMode will be set to false
// when optimizing code and the whole if statement will be dropped.
// tslint:disable-next-line:no-toplevel-property-access
/*@__PURE__*/
Object.freeze(EMPTY_OBJ); // tslint:disable-next-line:no-toplevel-property-access
/*@__PURE__*/
Object.freeze(EMPTY_ARRAY);
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/definition.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var _renderCompCount = 0;
/**
* Create a component definition object.
*
*
* # Example
* ```
* class MyDirective {
* // Generated by Angular Template Compiler
* // [Symbol] syntax will not be supported by TypeScript until v2.7
* static ɵcmp = defineComponent({
* ...
* });
* }
* ```
* \@codeGenApi
* @template T
* @param {?} componentDefinition
* @return {?}
*/
function ɵɵdefineComponent(componentDefinition) {
return noSideEffects(
/**
* @return {?}
*/
function () {
// Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.
// See the `initNgDevMode` docstring for more information.
(typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
/** @type {?} */
var type = componentDefinition.type;
/** @type {?} */
var typePrototype = type.prototype;
/** @type {?} */
var declaredInputs =
/** @type {?} */
{};
/** @type {?} */
var def = {
type: type,
providersResolver: null,
decls: componentDefinition.decls,
vars: componentDefinition.vars,
factory: null,
template: componentDefinition.template ||
/** @type {?} */
null,
consts: componentDefinition.consts || null,
ngContentSelectors: componentDefinition.ngContentSelectors,
hostBindings: componentDefinition.hostBindings || null,
hostVars: componentDefinition.hostVars || 0,
hostAttrs: componentDefinition.hostAttrs || null,
contentQueries: componentDefinition.contentQueries || null,
declaredInputs: declaredInputs,
inputs:
/** @type {?} */
null,
// assigned in noSideEffects
outputs:
/** @type {?} */
null,
// assigned in noSideEffects
exportAs: componentDefinition.exportAs || null,
onChanges: null,
onInit: typePrototype.ngOnInit || null,
doCheck: typePrototype.ngDoCheck || null,
afterContentInit: typePrototype.ngAfterContentInit || null,
afterContentChecked: typePrototype.ngAfterContentChecked || null,
afterViewInit: typePrototype.ngAfterViewInit || null,
afterViewChecked: typePrototype.ngAfterViewChecked || null,
onDestroy: typePrototype.ngOnDestroy || null,
onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,
directiveDefs:
/** @type {?} */
null,
// assigned in noSideEffects
pipeDefs:
/** @type {?} */
null,
// assigned in noSideEffects
selectors: componentDefinition.selectors || EMPTY_ARRAY,
viewQuery: componentDefinition.viewQuery || null,
features:
/** @type {?} */
componentDefinition.features || null,
data: componentDefinition.data || {},
// TODO(misko): convert ViewEncapsulation into const enum so that it can be used directly in
// the next line. Also `None` should be 0 not 2.
encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,
id: 'c',
styles: componentDefinition.styles || EMPTY_ARRAY,
_:
/** @type {?} */
null,
setInput: null,
schemas: componentDefinition.schemas || null,
tView: null
};
/** @type {?} */
var directiveTypes =
/** @type {?} */
componentDefinition.directives;
/** @type {?} */
var feature = componentDefinition.features;
/** @type {?} */
var pipeTypes =
/** @type {?} */
componentDefinition.pipes;
def.id += _renderCompCount++;
def.inputs = invertObject(componentDefinition.inputs, declaredInputs), def.outputs = invertObject(componentDefinition.outputs), feature && feature.forEach(
/**
* @param {?} fn
* @return {?}
*/
function (fn) {
return fn(def);
});
def.directiveDefs = directiveTypes ?
/**
* @return {?}
*/
function () {
return (typeof directiveTypes === 'function' ? directiveTypes() : directiveTypes).map(extractDirectiveDef);
} : null;
def.pipeDefs = pipeTypes ?
/**
* @return {?}
*/
function () {
return (typeof pipeTypes === 'function' ? pipeTypes() : pipeTypes).map(extractPipeDef);
} : null;
return (
/** @type {?} */
def
);
});
}
/**
* \@codeGenApi
* @param {?} type
* @param {?} directives
* @param {?} pipes
* @return {?}
*/
function ɵɵsetComponentScope(type, directives, pipes) {
/** @type {?} */
var def =
/** @type {?} */
type.ɵcmp;
def.directiveDefs =
/**
* @return {?}
*/
function () {
return directives.map(extractDirectiveDef);
};
def.pipeDefs =
/**
* @return {?}
*/
function () {
return pipes.map(extractPipeDef);
};
}
/**
* @param {?} type
* @return {?}
*/
function extractDirectiveDef(type) {
/** @type {?} */
var def = getComponentDef(type) || getDirectiveDef(type);
if (ngDevMode && !def) {
throw new Error("'".concat(type.name, "' is neither 'ComponentType' or 'DirectiveType'."));
}
return (
/** @type {?} */
def
);
}
/**
* @param {?} type
* @return {?}
*/
function extractPipeDef(type) {
/** @type {?} */
var def = getPipeDef(type);
if (ngDevMode && !def) {
throw new Error("'".concat(type.name, "' is not a 'PipeType'."));
}
return (
/** @type {?} */
def
);
}
/** @type {?} */
var autoRegisterModuleById = {};
/**
* \@codeGenApi
* @template T
* @param {?} def
* @return {?}
*/
function ɵɵdefineNgModule(def) {
/** @type {?} */
var res = {
type: def.type,
bootstrap: def.bootstrap || EMPTY_ARRAY,
declarations: def.declarations || EMPTY_ARRAY,
imports: def.imports || EMPTY_ARRAY,
exports: def.exports || EMPTY_ARRAY,
transitiveCompileScopes: null,
schemas: def.schemas || null,
id: def.id || null
};
if (def.id != null) {
noSideEffects(
/**
* @return {?}
*/
function () {
autoRegisterModuleById[
/** @type {?} */
def.id] =
/** @type {?} */
/** @type {?} */
def.type;
});
}
return (
/** @type {?} */
res
);
}
/**
* Adds the module metadata that is necessary to compute the module's transitive scope to an
* existing module definition.
*
* Scope metadata of modules is not used in production builds, so calls to this function can be
* marked pure to tree-shake it from the bundle, allowing for all referenced declarations
* to become eligible for tree-shaking as well.
*
* \@codeGenApi
* @param {?} type
* @param {?} scope
* @return {?}
*/
function ɵɵsetNgModuleScope(type, scope) {
return (
/** @type {?} */
noSideEffects(
/**
* @return {?}
*/
function () {
/** @type {?} */
var ngModuleDef = getNgModuleDef(type, true);
ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY;
ngModuleDef.imports = scope.imports || EMPTY_ARRAY;
ngModuleDef.exports = scope.exports || EMPTY_ARRAY;
})
);
}
/**
* Inverts an inputs or outputs lookup such that the keys, which were the
* minified keys, are part of the values, and the values are parsed so that
* the publicName of the property is the new key
*
* e.g. for
*
* ```
* class Comp {
* \@Input()
* propName1: string;
*
* \@Input('publicName2')
* declaredPropName2: number;
* }
* ```
*
* will be serialized as
*
* ```
* {
* propName1: 'propName1',
* declaredPropName2: ['publicName2', 'declaredPropName2'],
* }
* ```
*
* which is than translated by the minifier as:
*
* ```
* {
* minifiedPropName1: 'propName1',
* minifiedPropName2: ['publicName2', 'declaredPropName2'],
* }
* ```
*
* becomes: (public name => minifiedName)
*
* ```
* {
* 'propName1': 'minifiedPropName1',
* 'publicName2': 'minifiedPropName2',
* }
* ```
*
* Optionally the function can take `secondary` which will result in: (public name => declared name)
*
* ```
* {
* 'propName1': 'propName1',
* 'publicName2': 'declaredPropName2',
* }
* ```
*
* @template T
* @param {?=} obj
* @param {?=} secondary
* @return {?}
*/
function invertObject(obj, secondary) {
if (obj == null) return (
/** @type {?} */
EMPTY_OBJ
);
/** @type {?} */
var newLookup = {};
for (var minifiedKey in obj) {
if (obj.hasOwnProperty(minifiedKey)) {
/** @type {?} */
var publicName =
/** @type {?} */
obj[minifiedKey];
/** @type {?} */
var declaredName = publicName;
if (Array.isArray(publicName)) {
declaredName = publicName[1];
publicName = publicName[0];
}
newLookup[publicName] = minifiedKey;
if (secondary) {
secondary[publicName] =
/** @type {?} */
declaredName;
}
}
}
return newLookup;
}
/**
* Create a directive definition object.
*
* # Example
* ```ts
* class MyDirective {
* // Generated by Angular Template Compiler
* // [Symbol] syntax will not be supported by TypeScript until v2.7
* static ɵdir = ɵɵdefineDirective({
* ...
* });
* }
* ```
*
* \@codeGenApi
* @type {?}
*/
var ɵɵdefineDirective =
/** @type {?} */
/** @type {?} */
ɵɵdefineComponent;
/**
* Create a pipe definition object.
*
* # Example
* ```
* class MyPipe implements PipeTransform {
* // Generated by Angular Template Compiler
* static ɵpipe = definePipe({
* ...
* });
* }
* ```
* \@codeGenApi
* @template T
* @param {?} pipeDef Pipe definition generated by the compiler
*
* @return {?}
*/
function ɵɵdefinePipe(pipeDef) {
return (
/** @type {?} */
/** @type {?} */
{
type: pipeDef.type,
name: pipeDef.name,
factory: null,
pure: pipeDef.pure !== false,
onDestroy: pipeDef.type.prototype.ngOnDestroy || null
}
);
}
/**
* The following getter methods retrieve the definition form the type. Currently the retrieval
* honors inheritance, but in the future we may change the rule to require that definitions are
* explicit. This would require some sort of migration strategy.
* @template T
* @param {?} type
* @return {?}
*/
function getComponentDef(type) {
return type[NG_COMP_DEF] || null;
}
/**
* @template T
* @param {?} type
* @return {?}
*/
function getDirectiveDef(type) {
return type[NG_DIR_DEF] || null;
}
/**
* @template T
* @param {?} type
* @return {?}
*/
function getPipeDef(type) {
return type[NG_PIPE_DEF] || null;
}
/**
* @template T
* @param {?} type
* @param {?=} throwNotFound
* @return {?}
*/
function getFactoryDef(type, throwNotFound) {
/** @type {?} */
var hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);
if (!hasFactoryDef && throwNotFound === true && ngDevMode) {
throw new Error("Type ".concat(stringify(type), " does not have '\u0275fac' property."));
}
return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
}
/**
* @template T
* @param {?} type
* @param {?=} throwNotFound
* @return {?}
*/
function getNgModuleDef(type, throwNotFound) {
/** @type {?} */
var ngModuleDef = type[NG_MOD_DEF] || null;
if (!ngModuleDef && throwNotFound === true) {
throw new Error("Type ".concat(stringify(type), " does not have '\u0275mod' property."));
}
return ngModuleDef;
}
/**
* @param {?} type
* @return {?}
*/
function getNgLocaleIdDef(type) {
return (
/** @type {?} */
type[NG_LOC_ID_DEF] || null
);
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/interfaces/view.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Below are constants for LView indices to help us look up LView members
// without having to remember the specific indices.
// Uglify will inline these when minifying so there shouldn't be a cost.
/** @type {?} */
var HOST = 0;
/** @type {?} */
var TVIEW = 1;
/** @type {?} */
var FLAGS = 2;
/** @type {?} */
var PARENT = 3;
/** @type {?} */
var NEXT = 4;
/** @type {?} */
var QUERIES = 5;
/** @type {?} */
var T_HOST = 6;
/** @type {?} */
var CLEANUP = 7;
/** @type {?} */
var CONTEXT = 8;
/** @type {?} */
var INJECTOR$1 = 9;
/** @type {?} */
var RENDERER_FACTORY = 10;
/** @type {?} */
var RENDERER = 11;
/** @type {?} */
var SANITIZER = 12;
/** @type {?} */
var CHILD_HEAD = 13;
/** @type {?} */
var CHILD_TAIL = 14;
/** @type {?} */
var DECLARATION_VIEW = 15;
/** @type {?} */
var DECLARATION_COMPONENT_VIEW = 16;
/** @type {?} */
var DECLARATION_LCONTAINER = 17;
/** @type {?} */
var PREORDER_HOOK_FLAGS = 18;
/**
* Size of LView's header. Necessary to adjust for it when setting slots.
* @type {?}
*/
var HEADER_OFFSET = 19;
/**
* @record
*/
function OpaqueViewState() {}
if (false) {}
/**
* `LView` stores all of the information needed to process the instructions as
* they are invoked from the template. Each embedded view and component view has its
* own `LView`. When processing a particular view, we set the `viewData` to that
* `LView`. When that view is done processing, the `viewData` is set back to
* whatever the original `viewData` was before (the parent `LView`).
*
* Keeping separate state for each view facilities view insertion / deletion, so we
* don't have to edit the data array based on which views are present.
* @record
*/
function LView() {}
if (false) {}
/** @enum {number} */
var LViewFlags = {
/** The state of the init phase on the first 2 bits */
InitPhaseStateIncrementer: 1,
InitPhaseStateMask: 3,
/**
* Whether or not the view is in creationMode.
*
* This must be stored in the view rather than using `data` as a marker so that
* we can properly support embedded views. Otherwise, when exiting a child view
* back into the parent view, `data` will be defined and `creationMode` will be
* improperly reported as false.
*/
CreationMode: 4,
/**
* Whether or not this LView instance is on its first processing pass.
*
* An LView instance is considered to be on its "first pass" until it
* has completed one creation mode run and one update mode run. At this
* time, the flag is turned off.
*/
FirstLViewPass: 8,
/** Whether this view has default change detection strategy (checks always) or onPush */
CheckAlways: 16,
/**
* Whether or not manual change detection is turned on for onPush components.
*
* This is a special mode that only marks components dirty in two cases:
* 1) There has been a change to an @Input property
* 2) `markDirty()` has been called manually by the user
*
* Note that in this mode, the firing of events does NOT mark components
* dirty automatically.
*
* Manual mode is turned off by default for backwards compatibility, as events
* automatically mark OnPush components dirty in View Engine.
*
* TODO: Add a public API to ChangeDetectionStrategy to turn this mode on
*/
ManualOnPush: 32,
/** Whether or not this view is currently dirty (needing check) */
Dirty: 64,
/** Whether or not this view is currently attached to change detection tree. */
Attached: 128,
/** Whether or not this view is destroyed. */
Destroyed: 256,
/** Whether or not this view is the root view */
IsRoot: 512,
/**
* Index of the current init phase on last 22 bits
*/
IndexWithinInitPhaseIncrementer: 1024,
IndexWithinInitPhaseShift: 10,
IndexWithinInitPhaseReset: 1023
};
/** @enum {number} */
var InitPhaseState = {
OnInitHooksToBeRun: 0,
AfterContentInitHooksToBeRun: 1,
AfterViewInitHooksToBeRun: 2,
InitPhaseCompleted: 3
};
/** @enum {number} */
var PreOrderHookFlags = {
/** The index of the next pre-order hook to be called in the hooks array, on the first 16
bits */
IndexOfTheNextPreOrderHookMaskMask: 65535,
/**
* The number of init hooks that have already been called, on the last 16 bits
*/
NumberOfInitHooksCalledIncrementer: 65536,
NumberOfInitHooksCalledShift: 16,
NumberOfInitHooksCalledMask: 4294901760
};
/**
* Set of instructions used to process host bindings efficiently.
*
* See VIEW_DATA.md for more information.
* @record
*/
function ExpandoInstructions() {}
/** @enum {number} */
var TViewType = {
/**
* Root `TView` is the used to bootstrap components into. It is used in conjunction with
* `LView` which takes an existing DOM node not owned by Angular and wraps it in `TView`/`LView`
* so that other components can be loaded into it.
*/
Root: 0,
/**
* `TView` associated with a Component. This would be the `TView` directly associated with the
* component view (as opposed an `Embedded` `TView` which would be a child of `Component` `TView`)
*/
Component: 1,
/**
* `TView` associated with a template. Such as `*ngIf`, `` etc... A `Component`
* can have zero or more `Embedede` `TView`s.
*/
Embedded: 2
};
/**
* The static data for an LView (shared between all templates of a
* given type).
*
* Stored on the `ComponentDef.tView`.
* @record
*/
function TView() {}
if (false) {}
/** @enum {number} */
var RootContextFlags = {
Empty: 0,
DetectChanges: 1,
FlushPlayers: 2
};
/**
* RootContext contains information which is shared for all components which
* were bootstrapped with {\@link renderComponent}.
* @record
*/
function RootContext() {}
if (false) {} // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
/** @type {?} */
var unusedValueExportToPlacateAjd = 1;
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/interfaces/container.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Special location which allows easy identification of type. If we have an array which was
* retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is
* `LContainer`.
* @type {?}
*/
var TYPE = 1;
/**
* Below are constants for LContainer indices to help us look up LContainer members
* without having to remember the specific indices.
* Uglify will inline these when minifying so there shouldn't be a cost.
* @type {?}
*/
var ACTIVE_INDEX = 2; // PARENT and NEXT are indices 3 and 4
// As we already have these constants in LView, we don't need to re-create them.
/** @type {?} */
var MOVED_VIEWS = 5; // T_HOST is index 6
// We already have this constants in LView, we don't need to re-create it.
/** @type {?} */
var NATIVE = 7;
/** @type {?} */
var VIEW_REFS = 8;
/**
* Size of LContainer's header. Represents the index after which all views in the
* container will be inserted. We need to keep a record of current views so we know
* which views are already in the DOM (and don't need to be re-added) and so we can
* remove views from the DOM when they are no longer required.
* @type {?}
*/
var CONTAINER_HEADER_OFFSET = 9;
/** @enum {number} */
var ActiveIndexFlag = {
/**
* Flag which signifies that the `LContainer` does not have any inline embedded views.
*/
DYNAMIC_EMBEDDED_VIEWS_ONLY: -1,
/**
* Flag to signify that this `LContainer` may have transplanted views which need to be change
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
*
* This flag once set is never unset for the `LContainer`. This means that when unset we can skip
* a lot of work in `refreshDynamicEmbeddedViews`. But when set we still need to verify
* that the `MOVED_VIEWS` are transplanted and on-push.
*/
HAS_TRANSPLANTED_VIEWS: 1,
/**
* Number of bits to shift inline embedded views counter to make space for other flags.
*/
SHIFT: 1,
/**
* When incrementing the active index for inline embedded views, the amount to increment to leave
* space for other flags.
*/
INCREMENT: 2
};
/**
* The state associated with a container.
*
* This is an array so that its structure is closer to LView. This helps
* when traversing the view tree (which is a mix of containers and component
* views), so we can jump to viewOrContainer[NEXT] in the same way regardless
* of type.
* @record
*/
function LContainer() {}
if (false) {} // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
/** @type {?} */
var unusedValueExportToPlacateAjd$1 = 1;
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/interfaces/type_checks.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* True if `value` is `LView`.
* @param {?} value wrapped value of `RNode`, `LView`, `LContainer`
* @return {?}
*/
function isLView(value) {
return Array.isArray(value) && typeof value[TYPE] === 'object';
}
/**
* True if `value` is `LContainer`.
* @param {?} value wrapped value of `RNode`, `LView`, `LContainer`
* @return {?}
*/
function isLContainer(value) {
return Array.isArray(value) && value[TYPE] === true;
}
/**
* @param {?} tNode
* @return {?}
*/
function isContentQueryHost(tNode) {
return (tNode.flags & 8
/* hasContentQuery */
) !== 0;
}
/**
* @param {?} tNode
* @return {?}
*/
function isComponentHost(tNode) {
return (tNode.flags & 2
/* isComponentHost */
) === 2
/* isComponentHost */
;
}
/**
* @param {?} tNode
* @return {?}
*/
function isDirectiveHost(tNode) {
return (tNode.flags & 1
/* isDirectiveHost */
) === 1
/* isDirectiveHost */
;
}
/**
* @template T
* @param {?} def
* @return {?}
*/
function isComponentDef(def) {
return (
/** @type {?} */
def.template !== null
);
}
/**
* @param {?} target
* @return {?}
*/
function isRootView(target) {
return (target[FLAGS] & 512
/* IsRoot */
) !== 0;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/assert.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// [Assert functions do not constraint type when they are guarded by a truthy
// expression.](https://github.com/microsoft/TypeScript/issues/37295)
/**
* @param {?} tNode
* @param {?} lView
* @return {?}
*/
function assertTNodeForLView(tNode, lView) {
tNode.hasOwnProperty('tView_') && assertEqual(
/** @type {?} */
/** @type {?} */
tNode.tView_, lView[TVIEW], 'This TNode does not belong to this LView.');
}
/**
* @param {?} actual
* @param {?=} msg
* @return {?}
*/
function assertComponentType(actual) {
var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Type passed in is not ComponentType, it does not have \'ɵcmp\' property.';
if (!getComponentDef(actual)) {
throwError(msg);
}
}
/**
* @param {?} actual
* @param {?=} msg
* @return {?}
*/
function assertNgModuleType(actual) {
var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Type passed in is not NgModuleType, it does not have \'ɵmod\' property.';
if (!getNgModuleDef(actual)) {
throwError(msg);
}
}
/**
* @param {?} isParent
* @return {?}
*/
function assertPreviousIsParent(isParent) {
assertEqual(isParent, true, 'previousOrParentTNode should be a parent');
}
/**
* @param {?} tNode
* @return {?}
*/
function assertHasParent(tNode) {
assertDefined(tNode, 'previousOrParentTNode should exist!');
assertDefined(
/** @type {?} */
tNode.parent, 'previousOrParentTNode should have a parent');
}
/**
* @param {?} lView
* @param {?} index
* @param {?=} arr
* @return {?}
*/
function assertDataNext(lView, index, arr) {
if (arr == null) arr = lView;
assertEqual(arr.length, index, "index ".concat(index, " expected to be at the end of arr (length ").concat(arr.length, ")"));
}
/**
* @param {?} value
* @return {?}
*/
function assertLContainerOrUndefined(value) {
value && assertEqual(isLContainer(value), true, 'Expecting LContainer or undefined or null');
}
/**
* @param {?} value
* @return {?}
*/
function assertLContainer(value) {
assertDefined(value, 'LContainer must be defined');
assertEqual(isLContainer(value), true, 'Expecting LContainer');
}
/**
* @param {?} value
* @return {?}
*/
function assertLViewOrUndefined(value) {
value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');
}
/**
* @param {?} value
* @return {?}
*/
function assertLView(value) {
assertDefined(value, 'LView must be defined');
assertEqual(isLView(value), true, 'Expecting LView');
}
/**
* @param {?} tView
* @param {?=} errMessage
* @return {?}
*/
function assertFirstCreatePass(tView, errMessage) {
assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');
}
/**
* @param {?} tView
* @param {?=} errMessage
* @return {?}
*/
function assertFirstUpdatePass(tView, errMessage) {
assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');
}
/**
* This is a basic sanity check that an object is probably a directive def. DirectiveDef is
* an interface, so we can't do a direct instanceof check.
* @template T
* @param {?} obj
* @return {?}
*/
function assertDirectiveDef(obj) {
if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {
throwError("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.");
}
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/namespaces.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** @type {?} */
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
/** @type {?} */
var MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/';
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/interfaces/context.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This property will be monkey-patched on elements, components and directives
* @type {?}
*/
var MONKEY_PATCH_KEY_NAME = '__ngContext__';
/**
* The internal view context which is specific to a given DOM element, directive or
* component instance. Each value in here (besides the LView and element node details)
* can be present, null or undefined. If undefined then it implies the value has not been
* looked up yet, otherwise, if null, then a lookup was executed and nothing was found.
*
* Each value will get filled when the respective value is examined within the getContext
* function. The component, element and each directive instance will share the same instance
* of the context.
* @record
*/
function LContext() {}
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/interfaces/document.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Most of the use of `document` in Angular is from within the DI system so it is possible to simply
* inject the `DOCUMENT` token and are done.
*
* Ivy is special because it does not rely upon the DI and must get hold of the document some other
* way.
*
* The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.
* Wherever ivy needs the global document, it calls `getDocument()` instead.
*
* When running ivy outside of a browser environment, it is necessary to call `setDocument()` to
* tell ivy what the global `document` is.
*
* Angular does this for us in each of the standard platforms (`Browser`, `Server`, and `WebWorker`)
* by calling `setDocument()` when providing the `DOCUMENT` token.
* @type {?}
*/
var DOCUMENT = undefined;
/**
* Tell ivy what the `document` is for this platform.
*
* It is only necessary to call this if the current platform is not a browser.
*
* @param {?} document The object representing the global `document` in this environment.
* @return {?}
*/
function setDocument(document) {
DOCUMENT = document;
}
/**
* Access the object that represents the `document` for this platform.
*
* Ivy calls this whenever it needs to access the `document` object.
* For example to create the renderer or to do sanitization.
* @return {?}
*/
function getDocument() {
if (DOCUMENT !== undefined) {
return DOCUMENT;
} else if (typeof document !== 'undefined') {
return document;
} // No "document" can be found. This should only happen if we are running ivy outside Angular and
// the current platform is not a browser. Since this is not a supported scenario at the moment
// this should not happen in Angular apps.
// Once we support running ivy outside of Angular we will need to publish `setDocument()` as a
// public API. Meanwhile we just return `undefined` and let the application fail.
return (
/** @type {?} */
undefined
);
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/interfaces/renderer.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @enum {number} */
var RendererStyleFlags3 =
/*@__PURE__*/
function () {
var RendererStyleFlags3 = {
Important: 1,
DashCase: 2
};
RendererStyleFlags3[RendererStyleFlags3.Important] = 'Important';
RendererStyleFlags3[RendererStyleFlags3.DashCase] = 'DashCase';
return RendererStyleFlags3;
}();
/**
* Object Oriented style of API needed to create elements and text nodes.
*
* This is the native browser API style, e.g. operations are methods on individual objects
* like HTMLElement. With this style, no additional code is needed as a facade
* (reducing payload size).
*
* @record
*/
function ObjectOrientedRenderer3() {}
if (false) {}
/**
* Returns whether the `renderer` is a `ProceduralRenderer3`
* @param {?} renderer
* @return {?}
*/
function isProceduralRenderer(renderer) {
return !!
/** @type {?} */
renderer.listen;
}
/**
* Procedural style of API needed to create elements and text nodes.
*
* In non-native browser environments (e.g. platforms such as web-workers), this is the
* facade that enables element manipulation. This also facilitates backwards compatibility
* with Renderer2.
* @record
*/
function ProceduralRenderer3() {}
if (false) {}
/**
* @record
*/
function RendererFactory3() {}
if (false) {}
var ɵ0$2 =
/**
* @param {?} hostElement
* @param {?} rendererType
* @return {?}
*/
function ɵ0$2(hostElement, rendererType) {
return getDocument();
};
/** @type {?} */
var domRendererFactory3 = {
createRenderer: ɵ0$2
};
/**
* Subset of API needed for appending elements and text nodes.
* @record
*/
function RNode() {}
if (false) {}
/**
* Subset of API needed for writing attributes, properties, and setting up
* listeners on Element.
* @record
*/
function RElement() {}
if (false) {}
/**
* @record
*/
function RCssStyleDeclaration() {}
if (false) {}
/**
* @record
*/
function RDomTokenList() {}
if (false) {}
/**
* @record
*/
function RText() {}
if (false) {}
/**
* @record
*/
function RComment() {}
if (false) {} // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
/** @type {?} */
var unusedValueExportToPlacateAjd$2 = 1;
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/util/view_utils.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)
* in same location in `LView`. This is because we don't want to pre-allocate space for it
* because the storage is sparse. This file contains utilities for dealing with such data types.
*
* How do we know what is stored at a given location in `LView`.
* - `Array.isArray(value) === false` => `RNode` (The normal storage value)
* - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.
* - `typeof value[TYPE] === 'object'` => `LView`
* - This happens when we have a component at a given location
* - `typeof value[TYPE] === true` => `LContainer`
* - This happens when we have `LContainer` binding at a given location.
*
*
* NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.
*/
/**
* Returns `RNode`.
* @param {?} value wrapped value of `RNode`, `LView`, `LContainer`
* @return {?}
*/
function unwrapRNode(value) {
while (Array.isArray(value)) {
value =
/** @type {?} */
value[HOST];
}
return (
/** @type {?} */
value
);
}
/**
* Returns `LView` or `null` if not found.
* @param {?} value wrapped value of `RNode`, `LView`, `LContainer`
* @return {?}
*/
function unwrapLView(value) {
while (Array.isArray(value)) {
// This check is same as `isLView()` but we don't call at as we don't want to call
// `Array.isArray()` twice and give JITer more work for inlining.
if (typeof value[TYPE] === 'object') return (
/** @type {?} */
value
);
value =
/** @type {?} */
value[HOST];
}
return null;
}
/**
* Returns `LContainer` or `null` if not found.
* @param {?} value wrapped value of `RNode`, `LView`, `LContainer`
* @return {?}
*/
function unwrapLContainer(value) {
while (Array.isArray(value)) {
// This check is same as `isLContainer()` but we don't call at as we don't want to call
// `Array.isArray()` twice and give JITer more work for inlining.
if (value[TYPE] === true) return (
/** @type {?} */
value
);
value =
/** @type {?} */
value[HOST];
}
return null;
}
/**
* Retrieves an element value from the provided `viewData`, by unwrapping
* from any containers, component views, or style contexts.
* @param {?} index
* @param {?} lView
* @return {?}
*/
function getNativeByIndex(index, lView) {
return unwrapRNode(lView[index + HEADER_OFFSET]);
}
/**
* Retrieve an `RNode` for a given `TNode` and `LView`.
*
* This function guarantees in dev mode to retrieve a non-null `RNode`.
*
* @param {?} tNode
* @param {?} lView
* @return {?}
*/
function getNativeByTNode(tNode, lView) {
ngDevMode && assertTNodeForLView(tNode, lView);
ngDevMode && assertDataInRange(lView, tNode.index);
/** @type {?} */
var node = unwrapRNode(lView[tNode.index]);
ngDevMode && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
return node;
}
/**
* Retrieve an `RNode` or `null` for a given `TNode` and `LView`.
*
* Some `TNode`s don't have associated `RNode`s. For example `Projection`
*
* @param {?} tNode
* @param {?} lView
* @return {?}
*/
function getNativeByTNodeOrNull(tNode, lView) {
/** @type {?} */
var index = tNode.index;
if (index !== -1) {
ngDevMode && assertTNodeForLView(tNode, lView);
/** @type {?} */
var node = unwrapRNode(lView[index]);
ngDevMode && node !== null && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
return node;
}
return null;
}
/**
* @param {?} tView
* @param {?} index
* @return {?}
*/
function getTNode(tView, index) {
ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');
ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');
return (
/** @type {?} */
tView.data[index + HEADER_OFFSET]
);
}
/**
* Retrieves a value from any `LView` or `TData`.
* @template T
* @param {?} view
* @param {?} index
* @return {?}
*/
function load(view, index) {
ngDevMode && assertDataInRange(view, index + HEADER_OFFSET);
return view[index + HEADER_OFFSET];
}
/**
* @param {?} nodeIndex
* @param {?} hostView
* @return {?}
*/
function getComponentLViewByIndex(nodeIndex, hostView) {
// Could be an LView or an LContainer. If LContainer, unwrap to find LView.
ngDevMode && assertDataInRange(hostView, nodeIndex);
/** @type {?} */
var slotValue = hostView[nodeIndex];
/** @type {?} */
var lView = isLView(slotValue) ? slotValue : slotValue[HOST];
return lView;
}
/**
* Returns the monkey-patch value data present on the target (which could be
* a component, directive or a DOM node).
* @param {?} target
* @return {?}
*/
function readPatchedData(target) {
ngDevMode && assertDefined(target, 'Target expected');
return target[MONKEY_PATCH_KEY_NAME] || null;
}
/**
* @param {?} target
* @return {?}
*/
function readPatchedLView(target) {
/** @type {?} */
var value = readPatchedData(target);
if (value) {
return Array.isArray(value) ? value :
/** @type {?} */
value.lView;
}
return null;
}
/**
* Checks whether a given view is in creation mode
* @param {?} view
* @return {?}
*/
function isCreationMode(view) {
return (view[FLAGS] & 4
/* CreationMode */
) === 4
/* CreationMode */
;
}
/**
* Returns a boolean for whether the view is attached to the change detection tree.
*
* Note: This determines whether a view should be checked, not whether it's inserted
* into a container. For that, you'll want `viewAttachedToContainer` below.
* @param {?} view
* @return {?}
*/
function viewAttachedToChangeDetector(view) {
return (view[FLAGS] & 128
/* Attached */
) === 128
/* Attached */
;
}
/**
* Returns a boolean for whether the view is attached to a container.
* @param {?} view
* @return {?}
*/
function viewAttachedToContainer(view) {
return isLContainer(view[PARENT]);
}
/**
* Returns a constant from `TConstants` instance.
* @template T
* @param {?} consts
* @param {?} index
* @return {?}
*/
function getConstant(consts, index) {
return consts === null || index == null ? null :
/** @type {?} */
/** @type {?} */
consts[index];
}
/**
* Resets the pre-order hook flags of the view.
* @param {?} lView the LView on which the flags are reset
* @return {?}
*/
function resetPreOrderHookFlags(lView) {
lView[PREORDER_HOOK_FLAGS] = 0;
}
/**
* @param {?} lContainer
* @return {?}
*/
function getLContainerActiveIndex(lContainer) {
return lContainer[ACTIVE_INDEX] >> 1
/* SHIFT */
;
}
/**
* @param {?} lContainer
* @param {?} index
* @return {?}
*/
function setLContainerActiveIndex(lContainer, index) {
lContainer[ACTIVE_INDEX] = index << 1
/* SHIFT */
;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/state.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
*
* @record
*/
function LFrame() {}
if (false) {}
/**
* All implicit instruction state is stored here.
*
* It is useful to have a single object where all of the state is stored as a mental model
* (rather it being spread across many different variables.)
*
* PERF NOTE: Turns out that writing to a true global variable is slower than
* having an intermediate object with properties.
* @record
*/
function InstructionState() {}
if (false) {}
/** @type {?} */
var instructionState = {
lFrame:
/*@__PURE__*/
createLFrame(null),
bindingsEnabled: true,
checkNoChangesMode: false
};
/**
* @return {?}
*/
function getElementDepthCount() {
return instructionState.lFrame.elementDepthCount;
}
/**
* @return {?}
*/
function increaseElementDepthCount() {
instructionState.lFrame.elementDepthCount++;
}
/**
* @return {?}
*/
function decreaseElementDepthCount() {
instructionState.lFrame.elementDepthCount--;
}
/**
* @return {?}
*/
function getBindingsEnabled() {
return instructionState.bindingsEnabled;
}
/**
* Enables directive matching on elements.
*
* * Example:
* ```
*
* Should match component / directive.
*
*
*
*
* Should not match component / directive because we are in ngNonBindable.
*
*
*
* ```
*
* \@codeGenApi
* @return {?}
*/
function ɵɵenableBindings() {
instructionState.bindingsEnabled = true;
}
/**
* Disables directive matching on element.
*
* * Example:
* ```
*
* Should match component / directive.
*
*
*
*
* Should not match component / directive because we are in ngNonBindable.
*
*
*
* ```
*
* \@codeGenApi
* @return {?}
*/
function ɵɵdisableBindings() {
instructionState.bindingsEnabled = false;
}
/**
* Return the current `LView`.
* @return {?}
*/
function getLView() {
return instructionState.lFrame.lView;
}
/**
* Return the current `TView`.
* @return {?}
*/
function getTView() {
return instructionState.lFrame.tView;
}
/**
* Restores `contextViewData` to the given OpaqueViewState instance.
*
* Used in conjunction with the getCurrentView() instruction to save a snapshot
* of the current view and restore it when listeners are invoked. This allows
* walking the declaration view tree in listeners to get vars from parent views.
*
* \@codeGenApi
* @param {?} viewToRestore The OpaqueViewState instance to restore.
*
* @return {?}
*/
function ɵɵrestoreView(viewToRestore) {
instructionState.lFrame.contextLView =
/** @type {?} */
/** @type {?} */
viewToRestore;
}
/**
* @return {?}
*/
function getPreviousOrParentTNode() {
return instructionState.lFrame.previousOrParentTNode;
}
/**
* @param {?} tNode
* @param {?} isParent
* @return {?}
*/
function setPreviousOrParentTNode(tNode, isParent) {
instructionState.lFrame.previousOrParentTNode = tNode;
instructionState.lFrame.isParent = isParent;
}
/**
* @return {?}
*/
function getIsParent() {
return instructionState.lFrame.isParent;
}
/**
* @return {?}
*/
function setIsNotParent() {
instructionState.lFrame.isParent = false;
}
/**
* @return {?}
*/
function setIsParent() {
instructionState.lFrame.isParent = true;
}
/**
* @return {?}
*/
function getContextLView() {
return instructionState.lFrame.contextLView;
}
/**
* @return {?}
*/
function getCheckNoChangesMode() {
// TODO(misko): remove this from the LView since it is ngDevMode=true mode only.
return instructionState.checkNoChangesMode;
}
/**
* @param {?} mode
* @return {?}
*/
function setCheckNoChangesMode(mode) {
instructionState.checkNoChangesMode = mode;
} // top level variables should not be exported for performance reasons (PERF_NOTES.md)
/**
* @return {?}
*/
function getBindingRoot() {
/** @type {?} */
var lFrame = instructionState.lFrame;
/** @type {?} */
var index = lFrame.bindingRootIndex;
if (index === -1) {
index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;
}
return index;
}
/**
* @return {?}
*/
function getBindingIndex() {
return instructionState.lFrame.bindingIndex;
}
/**
* @param {?} value
* @return {?}
*/
function setBindingIndex(value) {
return instructionState.lFrame.bindingIndex = value;
}
/**
* @return {?}
*/
function nextBindingIndex() {
return instructionState.lFrame.bindingIndex++;
}
/**
* @param {?} count
* @return {?}
*/
function incrementBindingIndex(count) {
/** @type {?} */
var lFrame = instructionState.lFrame;
/** @type {?} */
var index = lFrame.bindingIndex;
lFrame.bindingIndex = lFrame.bindingIndex + count;
return index;
}
/**
* Set a new binding root index so that host template functions can execute.
*
* Bindings inside the host template are 0 index. But because we don't know ahead of time
* how many host bindings we have we can't pre-compute them. For this reason they are all
* 0 index and we just shift the root so that they match next available location in the LView.
*
* @param {?} bindingRootIndex Root index for `hostBindings`
* @param {?} currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive
* whose `hostBindings` are being processed.
* @return {?}
*/
function setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {
/** @type {?} */
var lFrame = instructionState.lFrame;
lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;
lFrame.currentDirectiveIndex = currentDirectiveIndex;
}
/**
* When host binding is executing this points to the directive index.
* `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`
* `LView[getCurrentDirectiveIndex()]` is directive instance.
* @return {?}
*/
function getCurrentDirectiveIndex() {
return instructionState.lFrame.currentDirectiveIndex;
}
/**
* @return {?}
*/
function getCurrentQueryIndex() {
return instructionState.lFrame.currentQueryIndex;
}
/**
* @param {?} value
* @return {?}
*/
function setCurrentQueryIndex(value) {
instructionState.lFrame.currentQueryIndex = value;
}
/**
* This is a light weight version of the `enterView` which is needed by the DI system.
* @param {?} newView
* @param {?} tNode
* @return {?}
*/
function enterDI(newView, tNode) {
ngDevMode && assertLViewOrUndefined(newView);
/** @type {?} */
var newLFrame = allocLFrame();
instructionState.lFrame = newLFrame;
newLFrame.previousOrParentTNode =
/** @type {?} */
tNode;
newLFrame.lView = newView;
}
/**
* Swap the current lView with a new lView.
*
* For performance reasons we store the lView in the top level of the module.
* This way we minimize the number of properties to read. Whenever a new view
* is entered we have to store the lView for later, and when the view is
* exited the state has to be restored
*
* @param {?} newView New lView to become active
* @param {?} tNode Element to which the View is a child of
* @return {?} the previously active lView;
*/
function enterView(newView, tNode) {
ngDevMode && assertLViewOrUndefined(newView);
/** @type {?} */
var newLFrame = allocLFrame();
if (ngDevMode) {
assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');
assertEqual(newLFrame.lView, null, 'Expected clean LFrame');
assertEqual(newLFrame.tView, null, 'Expected clean LFrame');
assertEqual(newLFrame.selectedIndex, 0, 'Expected clean LFrame');
assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');
assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');
assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');
assertEqual(newLFrame.currentSanitizer, null, 'Expected clean LFrame');
assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');
assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');
}
/** @type {?} */
var tView = newView[TVIEW];
instructionState.lFrame = newLFrame;
newLFrame.previousOrParentTNode =
/** @type {?} */
tNode;
newLFrame.lView = newView;
newLFrame.tView = tView;
newLFrame.contextLView =
/** @type {?} */
newView;
newLFrame.bindingIndex = tView.bindingStartIndex;
}
/**
* Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.
* @return {?}
*/
function allocLFrame() {
/** @type {?} */
var currentLFrame = instructionState.lFrame;
/** @type {?} */
var childLFrame = currentLFrame === null ? null : currentLFrame.child;
/** @type {?} */
var newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;
return newLFrame;
}
/**
* @param {?} parent
* @return {?}
*/
function createLFrame(parent) {
/** @type {?} */
var lFrame = {
previousOrParentTNode:
/** @type {?} */
null,
//
isParent: true,
//
lView:
/** @type {?} */
null,
//
tView:
/** @type {?} */
null,
//
selectedIndex: 0,
//
contextLView:
/** @type {?} */
null,
//
elementDepthCount: 0,
//
currentNamespace: null,
//
currentSanitizer: null,
//
currentDirectiveIndex: -1,
//
bindingRootIndex: -1,
//
bindingIndex: -1,
//
currentQueryIndex: 0,
//
parent:
/** @type {?} */
parent,
//
child: null
};
parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.
return lFrame;
}
/**
* A lightweight version of leave which is used with DI.
*
* This function only resets `previousOrParentTNode` and `LView` as those are the only properties
* used with DI (`enterDI()`).
*
* NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where
* as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.
* @return {?}
*/
function leaveViewLight() {
/** @type {?} */
var oldLFrame = instructionState.lFrame;
instructionState.lFrame = oldLFrame.parent;
oldLFrame.previousOrParentTNode =
/** @type {?} */
null;
oldLFrame.lView =
/** @type {?} */
null;
return oldLFrame;
}
/**
* This is a lightweight version of the `leaveView` which is needed by the DI system.
*
* NOTE: this function is an alias so that we can change the type of the function to have `void`
* return type.
* @type {?}
*/
var leaveDI = leaveViewLight;
/**
* Leave the current `LView`
*
* This pops the `LFrame` with the associated `LView` from the stack.
*
* IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is
* because for performance reasons we don't release `LFrame` but rather keep it for next use.
* @return {?}
*/
function leaveView() {
/** @type {?} */
var oldLFrame = leaveViewLight();
oldLFrame.isParent = true;
oldLFrame.tView =
/** @type {?} */
null;
oldLFrame.selectedIndex = 0;
oldLFrame.contextLView =
/** @type {?} */
null;
oldLFrame.elementDepthCount = 0;
oldLFrame.currentDirectiveIndex = -1;
oldLFrame.currentNamespace = null;
oldLFrame.currentSanitizer = null;
oldLFrame.bindingRootIndex = -1;
oldLFrame.bindingIndex = -1;
oldLFrame.currentQueryIndex = 0;
}
/**
* @template T
* @param {?} level
* @return {?}
*/
function nextContextImpl(level) {
/** @type {?} */
var contextLView = instructionState.lFrame.contextLView = walkUpViews(level,
/** @type {?} */
instructionState.lFrame.contextLView);
return (
/** @type {?} */
contextLView[CONTEXT]
);
}
/**
* @param {?} nestingLevel
* @param {?} currentView
* @return {?}
*/
function walkUpViews(nestingLevel, currentView) {
while (nestingLevel > 0) {
ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');
currentView =
/** @type {?} */
currentView[DECLARATION_VIEW];
nestingLevel--;
}
return currentView;
}
/**
* Gets the currently selected element index.
*
* Used with {\@link property} instruction (and more in the future) to identify the index in the
* current `LView` to act on.
* @return {?}
*/
function getSelectedIndex() {
return instructionState.lFrame.selectedIndex;
}
/**
* Sets the most recent index passed to {\@link select}
*
* Used with {\@link property} instruction (and more in the future) to identify the index in the
* current `LView` to act on.
*
* (Note that if an "exit function" was set earlier (via `setElementExitFn()`) then that will be
* run if and when the provided `index` value is different from the current selected index value.)
* @param {?} index
* @return {?}
*/
function setSelectedIndex(index) {
instructionState.lFrame.selectedIndex = index;
}
/**
* Gets the `tNode` that represents currently selected element.
* @return {?}
*/
function getSelectedTNode() {
/** @type {?} */
var lFrame = instructionState.lFrame;
return getTNode(lFrame.tView, lFrame.selectedIndex);
}
/**
* Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.
*
* \@codeGenApi
* @return {?}
*/
function ɵɵnamespaceSVG() {
instructionState.lFrame.currentNamespace = SVG_NAMESPACE;
}
/**
* Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
*
* \@codeGenApi
* @return {?}
*/
function ɵɵnamespaceMathML() {
instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;
}
/**
* Sets the namespace used to create elements to `null`, which forces element creation to use
* `createElement` rather than `createElementNS`.
*
* \@codeGenApi
* @return {?}
*/
function ɵɵnamespaceHTML() {
namespaceHTMLInternal();
}
/**
* Sets the namespace used to create elements to `null`, which forces element creation to use
* `createElement` rather than `createElementNS`.
* @return {?}
*/
function namespaceHTMLInternal() {
instructionState.lFrame.currentNamespace = null;
}
/**
* @return {?}
*/
function getNamespace() {
return instructionState.lFrame.currentNamespace;
}
/**
* @param {?} sanitizer
* @return {?}
*/
function setCurrentStyleSanitizer(sanitizer) {
instructionState.lFrame.currentSanitizer = sanitizer;
}
/**
* @return {?}
*/
function resetCurrentStyleSanitizer() {
setCurrentStyleSanitizer(null);
}
/**
* @return {?}
*/
function getCurrentStyleSanitizer() {
// TODO(misko): This should throw when there is no LView, but it turns out we can get here from
// `NodeStyleDebug` hence we return `null`. This should be fixed
/** @type {?} */
var lFrame = instructionState.lFrame;
return lFrame === null ? null : lFrame.currentSanitizer;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/hooks.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.
*
* Must be run *only* on the first template pass.
*
* Sets up the pre-order hooks on the provided `tView`,
* see {\@link HookData} for details about the data structure.
*
* @param {?} directiveIndex The index of the directive in LView
* @param {?} directiveDef The definition containing the hooks to setup in tView
* @param {?} tView The current TView
* @return {?}
*/
function registerPreOrderHooks(directiveIndex, directiveDef, tView) {
ngDevMode && assertFirstCreatePass(tView);
var onChanges = directiveDef.onChanges,
onInit = directiveDef.onInit,
doCheck = directiveDef.doCheck;
if (onChanges) {
(tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, onChanges);
(tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, onChanges);
}
if (onInit) {
(tView.preOrderHooks || (tView.preOrderHooks = [])).push(-directiveIndex, onInit);
}
if (doCheck) {
(tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, doCheck);
(tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, doCheck);
}
}
/**
*
* Loops through the directives on the provided `tNode` and queues hooks to be
* run that are not initialization hooks.
*
* Should be executed during `elementEnd()` and similar to
* preserve hook execution order. Content, view, and destroy hooks for projected
* components and directives must be called *before* their hosts.
*
* Sets up the content, view, and destroy hooks on the provided `tView`,
* see {\@link HookData} for details about the data structure.
*
* NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up
* separately at `elementStart`.
*
* @param {?} tView The current TView
* @param {?} tNode The TNode whose directives are to be searched for hooks to queue
* @return {?}
*/
function registerPostOrderHooks(tView, tNode) {
ngDevMode && assertFirstCreatePass(tView); // It's necessary to loop through the directives at elementEnd() (rather than processing in
// directiveCreate) so we can preserve the current hook order. Content, view, and destroy
// hooks for projected components and directives must be called *before* their hosts.
for (var i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {
/** @type {?} */
var _directiveDef =
/** @type {?} */
tView.data[i];
if (_directiveDef.afterContentInit) {
(tView.contentHooks || (tView.contentHooks = [])).push(-i, _directiveDef.afterContentInit);
}
if (_directiveDef.afterContentChecked) {
(tView.contentHooks || (tView.contentHooks = [])).push(i, _directiveDef.afterContentChecked);
(tView.contentCheckHooks || (tView.contentCheckHooks = [])).push(i, _directiveDef.afterContentChecked);
}
if (_directiveDef.afterViewInit) {
(tView.viewHooks || (tView.viewHooks = [])).push(-i, _directiveDef.afterViewInit);
}
if (_directiveDef.afterViewChecked) {
(tView.viewHooks || (tView.viewHooks = [])).push(i, _directiveDef.afterViewChecked);
(tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, _directiveDef.afterViewChecked);
}
if (_directiveDef.onDestroy != null) {
(tView.destroyHooks || (tView.destroyHooks = [])).push(i, _directiveDef.onDestroy);
}
}
}
/**
* Executing hooks requires complex logic as we need to deal with 2 constraints.
*
* 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only
* once, across many change detection cycles. This must be true even if some hooks throw, or if
* some recursively trigger a change detection cycle.
* To solve that, it is required to track the state of the execution of these init hooks.
* This is done by storing and maintaining flags in the view: the {@link InitPhaseState},
* and the index within that phase. They can be seen as a cursor in the following structure:
* [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]
* They are are stored as flags in LView[FLAGS].
*
* 2. Pre-order hooks can be executed in batches, because of the select instruction.
* To be able to pause and resume their execution, we also need some state about the hook's array
* that is being processed:
* - the index of the next hook to be executed
* - the number of init hooks already found in the processed part of the array
* They are are stored as flags in LView[PREORDER_HOOK_FLAGS].
*/
/**
* Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were
* executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read
* / write of the init-hooks related flags.
* @param {?} lView The LView where hooks are defined
* @param {?} hooks Hooks to be run
* @param {?=} nodeIndex 3 cases depending on the value:
* - undefined: all hooks from the array should be executed (post-order case)
* - null: execute hooks only from the saved index until the end of the array (pre-order case, when
* flushing the remaining hooks)
* - number: execute hooks only from the saved index until that node index exclusive (pre-order
* case, when executing select(number))
* @return {?}
*/
function executeCheckHooks(lView, hooks, nodeIndex) {
callHooks(lView, hooks, 3
/* InitPhaseCompleted */
, nodeIndex);
}
/**
* Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,
* AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.
* @param {?} lView The LView where hooks are defined
* @param {?} hooks Hooks to be run
* @param {?} initPhase A phase for which hooks should be run
* @param {?=} nodeIndex 3 cases depending on the value:
* - undefined: all hooks from the array should be executed (post-order case)
* - null: execute hooks only from the saved index until the end of the array (pre-order case, when
* flushing the remaining hooks)
* - number: execute hooks only from the saved index until that node index exclusive (pre-order
* case, when executing select(number))
* @return {?}
*/
function executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {
ngDevMode && assertNotEqual(initPhase, 3
/* InitPhaseCompleted */
, 'Init pre-order hooks should not be called more than once');
if ((lView[FLAGS] & 3
/* InitPhaseStateMask */
) === initPhase) {
callHooks(lView, hooks, initPhase, nodeIndex);
}
}
/**
* @param {?} lView
* @param {?} initPhase
* @return {?}
*/
function incrementInitPhaseFlags(lView, initPhase) {
ngDevMode && assertNotEqual(initPhase, 3
/* InitPhaseCompleted */
, 'Init hooks phase should not be incremented after all init hooks have been run.');
/** @type {?} */
var flags = lView[FLAGS];
if ((flags & 3
/* InitPhaseStateMask */
) === initPhase) {
flags &= 1023
/* IndexWithinInitPhaseReset */
;
flags += 1
/* InitPhaseStateIncrementer */
;
lView[FLAGS] = flags;
}
}
/**
* Calls lifecycle hooks with their contexts, skipping init hooks if it's not
* the first LView pass
*
* @param {?} currentView The current view
* @param {?} arr The array in which the hooks are found
* @param {?} initPhase
* @param {?} currentNodeIndex 3 cases depending on the value:
* - undefined: all hooks from the array should be executed (post-order case)
* - null: execute hooks only from the saved index until the end of the array (pre-order case, when
* flushing the remaining hooks)
* - number: execute hooks only from the saved index until that node index exclusive (pre-order
* case, when executing select(number))
* @return {?}
*/
function callHooks(currentView, arr, initPhase, currentNodeIndex) {
ngDevMode && assertEqual(getCheckNoChangesMode(), false, 'Hooks should never be run in the check no changes mode.');
/** @type {?} */
var startIndex = currentNodeIndex !== undefined ? currentView[PREORDER_HOOK_FLAGS] & 65535
/* IndexOfTheNextPreOrderHookMaskMask */
: 0;
/** @type {?} */
var nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;
/** @type {?} */
var lastNodeIndexFound = 0;
for (var i = startIndex; i < arr.length; i++) {
/** @type {?} */
var hook =
/** @type {?} */
arr[i + 1];
if (typeof hook === 'number') {
lastNodeIndexFound =
/** @type {?} */
arr[i];
if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {
break;
}
} else {
/** @type {?} */
var isInitHook = arr[i] < 0;
if (isInitHook) currentView[PREORDER_HOOK_FLAGS] += 65536
/* NumberOfInitHooksCalledIncrementer */
;
if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {
callHook(currentView, initPhase, arr, i);
currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760
/* NumberOfInitHooksCalledMask */
) + i + 2;
}
i++;
}
}
}
/**
* Execute one hook against the current `LView`.
*
* @param {?} currentView The current view
* @param {?} initPhase
* @param {?} arr The array in which the hooks are found
* @param {?} i The current index within the hook data array
* @return {?}
*/
function callHook(currentView, initPhase, arr, i) {
/** @type {?} */
var isInitHook = arr[i] < 0;
/** @type {?} */
var hook =
/** @type {?} */
arr[i + 1];
/** @type {?} */
var directiveIndex = isInitHook ? -arr[i] :
/** @type {?} */
arr[i];
/** @type {?} */
var directive = currentView[directiveIndex];
if (isInitHook) {
/** @type {?} */
var indexWithintInitPhase = currentView[FLAGS] >> 10
/* IndexWithinInitPhaseShift */
; // The init phase state must be always checked here as it may have been recursively
// updated
if (indexWithintInitPhase < currentView[PREORDER_HOOK_FLAGS] >> 16
/* NumberOfInitHooksCalledShift */
&& (currentView[FLAGS] & 3
/* InitPhaseStateMask */
) === initPhase) {
currentView[FLAGS] += 1024
/* IndexWithinInitPhaseIncrementer */
;
hook.call(directive);
}
} else {
hook.call(directive);
}
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/interfaces/injector.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** @type {?} */
var TNODE = 8;
/** @type {?} */
var PARENT_INJECTOR = 8;
/** @type {?} */
var INJECTOR_BLOOM_PARENT_SIZE = 9;
/**
* Represents a relative location of parent injector.
*
* The interfaces encodes number of parents `LView`s to traverse and index in the `LView`
* pointing to the parent injector.
* @record
*/
function RelativeInjectorLocation() {}
if (false) {}
/** @enum {number} */
var RelativeInjectorLocationFlags = {
InjectorIndexMask: 32767,
ViewOffsetShift: 16,
NO_PARENT: -1
};
/** @type {?} */
var NO_PARENT_INJECTOR =
/** @type {?} */
-1;
/**
* Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in
* `TView.data`. This allows us to store information about the current node's tokens (which
* can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be
* shared, so they live in `LView`).
*
* Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter
* determines whether a directive is available on the associated node or not. This prevents us
* from searching the directives array at this level unless it's probable the directive is in it.
*
* See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.
*
* Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed
* using interfaces as they were previously. The start index of each `LInjector` and `TInjector`
* will differ based on where it is flattened into the main array, so it's not possible to know
* the indices ahead of time and save their types here. The interfaces are still included here
* for documentation purposes.
*
* export interface LInjector extends Array {
*
* // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)
* [0]: number;
*
* // Cumulative bloom for directive IDs 32-63
* [1]: number;
*
* // Cumulative bloom for directive IDs 64-95
* [2]: number;
*
* // Cumulative bloom for directive IDs 96-127
* [3]: number;
*
* // Cumulative bloom for directive IDs 128-159
* [4]: number;
*
* // Cumulative bloom for directive IDs 160 - 191
* [5]: number;
*
* // Cumulative bloom for directive IDs 192 - 223
* [6]: number;
*
* // Cumulative bloom for directive IDs 224 - 255
* [7]: number;
*
* // We need to store a reference to the injector's parent so DI can keep looking up
* // the injector tree until it finds the dependency it's looking for.
* [PARENT_INJECTOR]: number;
* }
*
* export interface TInjector extends Array {
*
* // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)
* [0]: number;
*
* // Shared node bloom for directive IDs 32-63
* [1]: number;
*
* // Shared node bloom for directive IDs 64-95
* [2]: number;
*
* // Shared node bloom for directive IDs 96-127
* [3]: number;
*
* // Shared node bloom for directive IDs 128-159
* [4]: number;
*
* // Shared node bloom for directive IDs 160 - 191
* [5]: number;
*
* // Shared node bloom for directive IDs 192 - 223
* [6]: number;
*
* // Shared node bloom for directive IDs 224 - 255
* [7]: number;
*
* // Necessary to find directive indices for a particular node.
* [TNODE]: TElementNode|TElementContainerNode|TContainerNode;
* }
*/
/**
* Factory for creating instances of injectors in the NodeInjector.
*
* This factory is complicated by the fact that it can resolve `multi` factories as well.
*
* NOTE: Some of the fields are optional which means that this class has two hidden classes.
* - One without `multi` support (most common)
* - One with `multi` values, (rare).
*
* Since VMs can cache up to 4 inline hidden classes this is OK.
*
* - Single factory: Only `resolving` and `factory` is defined.
* - `providers` factory: `componentProviders` is a number and `index = -1`.
* - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.
*/
var NodeInjectorFactory =
/*#__PURE__*/
_createClass2(
/**
* @param {?} factory
* @param {?} isViewProvider
* @param {?} injectImplementation
*/
function NodeInjectorFactory(factory,
/**
* Set to `true` if the token is declared in `viewProviders` (or if it is component).
*/
isViewProvider, injectImplementation) {
_classCallCheck(this, NodeInjectorFactory);
this.factory = factory;
/**
* Marker set to true during factory invocation to see if we get into recursive loop.
* Recursive loop causes an error to be displayed.
*/
this.resolving = false;
this.canSeeViewProviders = isViewProvider;
this.injectImpl = injectImplementation;
});
if (false) {}
/**
* @param {?} obj
* @return {?}
*/
function isFactory(obj) {
return obj instanceof NodeInjectorFactory;
} // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
/** @type {?} */
var unusedValueExportToPlacateAjd$3 = 1;
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/node_assert.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} tNode
* @param {?} type
* @return {?}
*/
function assertNodeType(tNode, type) {
assertDefined(tNode, 'should be called with a TNode');
assertEqual(tNode.type, type, "should be a ".concat(typeName(type)));
}
/**
* @param {?} tNode
* @param {...?} types
* @return {?}
*/
function assertNodeOfPossibleTypes(tNode) {
assertDefined(tNode, 'should be called with a TNode');
/** @type {?} */
for (var _len10 = arguments.length, types = new Array(_len10 > 1 ? _len10 - 1 : 0), _key11 = 1; _key11 < _len10; _key11++) {
types[_key11 - 1] = arguments[_key11];
}
var found = types.some(
/**
* @param {?} type
* @return {?}
*/
/**
* @param {?} type
* @return {?}
*/
function (type) {
return tNode.type === type;
});
assertEqual(found, true, "Should be one of ".concat(types.map(typeName).join(', '), " but got ").concat(typeName(tNode.type)));
}
/**
* @param {?} type
* @return {?}
*/
function typeName(type) {
if (type == 1
/* Projection */
) return 'Projection';
if (type == 0
/* Container */
) return 'Container';
if (type == 5
/* IcuContainer */
) return 'IcuContainer';
if (type == 2
/* View */
) return 'View';
if (type == 3
/* Element */
) return 'Element';
if (type == 4
/* ElementContainer */
) return 'ElementContainer';
return '';
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/util/attrs_utils.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Assigns all attribute values to the provided element via the inferred renderer.
*
* This function accepts two forms of attribute entries:
*
* default: (key, value):
* attrs = [key1, value1, key2, value2]
*
* namespaced: (NAMESPACE_MARKER, uri, name, value)
* attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]
*
* The `attrs` array can contain a mix of both the default and namespaced entries.
* The "default" values are set without a marker, but if the function comes across
* a marker value then it will attempt to set a namespaced value. If the marker is
* not of a namespaced value then the function will quit and return the index value
* where it stopped during the iteration of the attrs array.
*
* See [AttributeMarker] to understand what the namespace marker value is.
*
* Note that this instruction does not support assigning style and class values to
* an element. See `elementStart` and `elementHostAttrs` to learn how styling values
* are applied to an element.
* @param {?} renderer The renderer to be used
* @param {?} native The element that the attributes will be assigned to
* @param {?} attrs The attribute array of values that will be assigned to the element
* @return {?} the index value that was last accessed in the attributes array
*/
function setUpAttributes(renderer, _native, attrs) {
/** @type {?} */
var isProc = isProceduralRenderer(renderer);
/** @type {?} */
var i = 0;
while (i < attrs.length) {
/** @type {?} */
var value = attrs[i];
if (typeof value === 'number') {
// only namespaces are supported. Other value types (such as style/class
// entries) are not supported in this function.
if (value !== 0
/* NamespaceURI */
) {
break;
} // we just landed on the marker value ... therefore
// we should skip to the next entry
i++;
/** @type {?} */
var namespaceURI =
/** @type {?} */
attrs[i++];
/** @type {?} */
var attrName =
/** @type {?} */
attrs[i++];
/** @type {?} */
var attrVal =
/** @type {?} */
attrs[i++];
ngDevMode && ngDevMode.rendererSetAttribute++;
isProc ?
/** @type {?} */
renderer.setAttribute(_native, attrName, attrVal, namespaceURI) : _native.setAttributeNS(namespaceURI, attrName, attrVal);
} else {
// attrName is string;
/** @type {?} */
var _attrName =
/** @type {?} */
value;
/** @type {?} */
var _attrVal = attrs[++i]; // Standard attributes
ngDevMode && ngDevMode.rendererSetAttribute++;
if (isAnimationProp(_attrName)) {
if (isProc) {
/** @type {?} */
renderer.setProperty(_native, _attrName, _attrVal);
}
} else {
isProc ?
/** @type {?} */
renderer.setAttribute(_native, _attrName,
/** @type {?} */
_attrVal) : _native.setAttribute(_attrName,
/** @type {?} */
_attrVal);
}
i++;
}
} // another piece of code may iterate over the same attributes array. Therefore
// it may be helpful to return the exact spot where the attributes array exited
// whether by running into an unsupported marker or if all the static values were
// iterated over.
return i;
}
/**
* Test whether the given value is a marker that indicates that the following
* attribute values in a `TAttributes` array are only the names of attributes,
* and not name-value pairs.
* @param {?} marker The attribute marker to test.
* @return {?} true if the marker is a "name-only" marker (e.g. `Bindings`, `Template` or `I18n`).
*/
function isNameOnlyAttributeMarker(marker) {
return marker === 3
/* Bindings */
|| marker === 4
/* Template */
|| marker === 6
/* I18n */
;
}
/**
* @param {?} name
* @return {?}
*/
function isAnimationProp(name) {
// Perf note: accessing charCodeAt to check for the first character of a string is faster as
// compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that
// charCodeAt doesn't allocate memory to return a substring.
return name.charCodeAt(0) === 64
/* AT_SIGN */
;
}
/**
* Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.
*
* This merge function keeps the order of attrs same.
*
* @param {?} dst Location of where the merged `TAttributes` should end up.
* @param {?} src `TAttributes` which should be appended to `dst`
* @return {?}
*/
function mergeHostAttrs(dst, src) {
if (src === null || src.length === 0) {// do nothing
} else if (dst === null || dst.length === 0) {
// We have source, but dst is empty, just make a copy.
dst = src.slice();
} else {
/** @type {?} */
var srcMarker = -1
/* ImplicitAttributes */
;
for (var i = 0; i < src.length; i++) {
/** @type {?} */
var item = src[i];
if (typeof item === 'number') {
srcMarker = item;
} else {
if (srcMarker === 0
/* NamespaceURI */
) {// Case where we need to consume `key1`, `key2`, `value` items.
} else if (srcMarker === -1
/* ImplicitAttributes */
|| srcMarker === 2
/* Styles */
) {
// Case where we have to consume `key1` and `value` only.
mergeHostAttribute(dst, srcMarker,
/** @type {?} */
item, null,
/** @type {?} */
src[++i]);
} else {
// Case where we have to consume `key1` only.
mergeHostAttribute(dst, srcMarker,
/** @type {?} */
item, null, null);
}
}
}
}
return dst;
}
/**
* Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.
*
* @param {?} dst `TAttributes` to append to.
* @param {?} marker Region where the `key`/`value` should be added.
* @param {?} key1 Key to add to `TAttributes`
* @param {?} key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)
* @param {?} value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.
* @return {?}
*/
function mergeHostAttribute(dst, marker, key1, key2, value) {
/** @type {?} */
var i = 0; // Assume that new markers will be inserted at the end.
/** @type {?} */
var markerInsertPosition = dst.length; // scan until correct type.
if (marker === -1
/* ImplicitAttributes */
) {
markerInsertPosition = -1;
} else {
while (i < dst.length) {
/** @type {?} */
var dstValue = dst[i++];
if (typeof dstValue === 'number') {
if (dstValue === marker) {
markerInsertPosition = -1;
break;
} else if (dstValue > marker) {
// We need to save this as we want the markers to be inserted in specific order.
markerInsertPosition = i - 1;
break;
}
}
}
} // search until you find place of insertion
while (i < dst.length) {
/** @type {?} */
var item = dst[i];
if (typeof item === 'number') {
// since `i` started as the index after the marker, we did not find it if we are at the next
// marker
break;
} else if (item === key1) {
// We already have same token
if (key2 === null) {
if (value !== null) {
dst[i + 1] = value;
}
return;
} else if (key2 === dst[i + 1]) {
dst[i + 2] =
/** @type {?} */
value;
return;
}
} // Increment counter.
i++;
if (key2 !== null) i++;
if (value !== null) i++;
} // insert at location.
if (markerInsertPosition !== -1) {
dst.splice(markerInsertPosition, 0, marker);
i = markerInsertPosition + 1;
}
dst.splice(i++, 0, key1);
if (key2 !== null) {
dst.splice(i++, 0, key2);
}
if (value !== null) {
dst.splice(i++, 0, value);
}
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/util/injector_utils.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/// Parent Injector Utils ///////////////////////////////////////////////////////////////
/**
* @param {?} parentLocation
* @return {?}
*/
function hasParentInjector(parentLocation) {
return parentLocation !== NO_PARENT_INJECTOR;
}
/**
* @param {?} parentLocation
* @return {?}
*/
function getParentInjectorIndex(parentLocation) {
return (
/** @type {?} */
/** @type {?} */
parentLocation & 32767
/* InjectorIndexMask */
);
}
/**
* @param {?} parentLocation
* @return {?}
*/
function getParentInjectorViewOffset(parentLocation) {
return (
/** @type {?} */
/** @type {?} */
parentLocation >> 16
/* ViewOffsetShift */
);
}
/**
* Unwraps a parent injector location number to find the view offset from the current injector,
* then walks up the declaration view tree until the view is found that contains the parent
* injector.
*
* @param {?} location The location of the parent injector, which contains the view offset
* @param {?} startView The LView instance from which to start walking up the view tree
* @return {?} The LView instance that contains the parent injector
*/
function getParentInjectorView(location, startView) {
/** @type {?} */
var viewOffset = getParentInjectorViewOffset(location);
/** @type {?} */
var parentView = startView; // For most cases, the parent injector can be found on the host node (e.g. for component
// or container), but we must keep the loop here to support the rarer case of deeply nested
// tags or inline views, where the parent injector might live many views
// above the child injector.
while (viewOffset > 0) {
parentView =
/** @type {?} */
parentView[DECLARATION_VIEW];
viewOffset--;
}
return parentView;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/util/misc_utils.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Used for stringify render output in Ivy.
* Important! This function is very performance-sensitive and we should
* be extra careful not to introduce megamorphic reads in it.
* @param {?} value
* @return {?}
*/
function renderStringify(value) {
if (typeof value === 'string') return value;
if (value == null) return '';
return '' + value;
}
/**
* Used to stringify a value so that it can be displayed in an error message.
* Important! This function contains a megamorphic read and should only be
* used for error messages.
* @param {?} value
* @return {?}
*/
function stringifyForError(value) {
if (typeof value === 'function') return value.name || value.toString();
if (typeof value === 'object' && value != null && typeof value.type === 'function') {
return value.type.name || value.type.toString();
}
return renderStringify(value);
}
var ɵ0$3 =
/**
* @return {?}
*/
function ɵ0$3() {
return (typeof requestAnimationFrame !== 'undefined' && requestAnimationFrame || // browser only
setTimeout // everything else
).bind(_global);
};
/** @type {?} */
var defaultScheduler =
/*@__PURE__*/
ɵ0$3();
/**
*
* \@codeGenApi
* @param {?} element
* @return {?}
*/
function ɵɵresolveWindow(element) {
return {
name: 'window',
target: element.ownerDocument.defaultView
};
}
/**
*
* \@codeGenApi
* @param {?} element
* @return {?}
*/
function ɵɵresolveDocument(element) {
return {
name: 'document',
target: element.ownerDocument
};
}
/**
*
* \@codeGenApi
* @param {?} element
* @return {?}
*/
function ɵɵresolveBody(element) {
return {
name: 'body',
target: element.ownerDocument.body
};
}
/**
* The special delimiter we use to separate property names, prefixes, and suffixes
* in property binding metadata. See storeBindingMetadata().
*
* We intentionally use the Unicode "REPLACEMENT CHARACTER" (U+FFFD) as a delimiter
* because it is a very uncommon character that is unlikely to be part of a user's
* property names or interpolation strings. If it is in fact used in a property
* binding, DebugElement.properties will not return the correct value for that
* binding. However, there should be no runtime effect for real applications.
*
* This character is typically rendered as a question mark inside of a diamond.
* See https://en.wikipedia.org/wiki/Specials_(Unicode_block)
*
* @type {?}
*/
var INTERPOLATION_DELIMITER = "\uFFFD";
/**
* Unwrap a value which might be behind a closure (for forward declaration reasons).
* @template T
* @param {?} value
* @return {?}
*/
function maybeUnwrapFn(value) {
if (value instanceof Function) {
return value();
} else {
return value;
}
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/render3/di.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Defines if the call to `inject` should include `viewProviders` in its resolution.
*
* This is set to true when we try to instantiate a component. This value is reset in
* `getNodeInjectable` to a value which matches the declaration location of the token about to be
* instantiated. This is done so that if we are injecting a token which was declared outside of
* `viewProviders` we don't accidentally pull `viewProviders` in.
*
* Example:
*
* ```
* \@Injectable()
* class MyService {
* constructor(public value: String) {}
* }
*
* \@Component({
* providers: [
* MyService,
* {provide: String, value: 'providers' }
* ]
* viewProviders: [
* {provide: String, value: 'viewProviders'}
* ]
* })
* class MyComponent {
* constructor(myService: MyService, value: String) {
* // We expect that Component can see into `viewProviders`.
* expect(value).toEqual('viewProviders');
* // `MyService` was not declared in `viewProviders` hence it can't see it.
* expect(myService.value).toEqual('providers');
* }
* }
*
* ```
* @type {?}
*/
var includeViewProviders = true;
/**
* @param {?} v
* @return {?}
*/
function setIncludeViewProviders(v) {
/** @type {?} */
var oldValue = includeViewProviders;
includeViewProviders = v;
return oldValue;
}
/**
* The number of slots in each bloom filter (used by DI). The larger this number, the fewer
* directives that will share slots, and thus, the fewer false positives when checking for
* the existence of a directive.
* @type {?}
*/
var BLOOM_SIZE = 256;
/** @type {?} */
var BLOOM_MASK = BLOOM_SIZE - 1;
/**
* Counter used to generate unique IDs for directives.
* @type {?}
*/
var nextNgElementId = 0;
/**
* Registers this directive as present in its node's injector by flipping the directive's
* corresponding bit in the injector's bloom filter.
*
* @param {?} injectorIndex The index of the node injector where this token should be registered
* @param {?} tView The TView for the injector's bloom filters
* @param {?} type The directive token to register
* @return {?}
*/
function bloomAdd(injectorIndex, tView, type) {
ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');
/** @type {?} */
var id = typeof type !== 'string' ?
/** @type {?} */
type[NG_ELEMENT_ID] : type.charCodeAt(0) || 0; // Set a unique ID on the directive type, so if something tries to inject the directive,
// we can easily retrieve the ID and hash it into the bloom bit that should be checked.
if (id == null) {
id =
/** @type {?} */
type[NG_ELEMENT_ID] = nextNgElementId++;
} // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),
// so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.
/** @type {?} */
var bloomBit = id & BLOOM_MASK; // Create a mask that targets the specific bit associated with the directive.
// JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
// to bit positions 0 - 31 in a 32 bit integer.
/** @type {?} */
var mask = 1 << bloomBit; // Use the raw bloomBit number to determine which bloom filter bucket we should check
// e.g: bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc
/** @type {?} */
var b7 = bloomBit & 0x80;
/** @type {?} */
var b6 = bloomBit & 0x40;
/** @type {?} */
var b5 = bloomBit & 0x20;
/** @type {?} */
var tData =
/** @type {?} */
tView.data;
if (b7) {
b6 ? b5 ? tData[injectorIndex + 7] |= mask : tData[injectorIndex + 6] |= mask : b5 ? tData[injectorIndex + 5] |= mask : tData[injectorIndex + 4] |= mask;
} else {
b6 ? b5 ? tData[injectorIndex + 3] |= mask : tData[injectorIndex + 2] |= mask : b5 ? tData[injectorIndex + 1] |= mask : tData[injectorIndex] |= mask;
}
}
/**
* Creates (or gets an existing) injector for a given element or container.
*
* @param {?} tNode for which an injector should be retrieved / created.
* @param {?} hostView View where the node is stored
* @return {?} Node injector
*/
function getOrCreateNodeInjectorForNode(tNode, hostView) {
/** @type {?} */
var existingInjectorIndex = getInjectorIndex(tNode, hostView);
if (existingInjectorIndex !== -1) {
return existingInjectorIndex;
}
/** @type {?} */
var tView = hostView[TVIEW];
if (tView.firstCreatePass) {
tNode.injectorIndex = hostView.length;
insertBloom(tView.data, tNode); // foundation for node bloom
insertBloom(hostView, null); // foundation for cumulative bloom
insertBloom(tView.blueprint, null);
}
/** @type {?} */
var parentLoc = getParentInjectorLocation(tNode, hostView);
/** @type {?} */
var injectorIndex = tNode.injectorIndex; // If a parent injector can't be found, its location is set to -1.
// In that case, we don't need to set up a cumulative bloom
if (hasParentInjector(parentLoc)) {
/** @type {?} */
var parentIndex = getParentInjectorIndex(parentLoc);
/** @type {?} */
var parentLView = getParentInjectorView(parentLoc, hostView);
/** @type {?} */
var parentData =
/** @type {?} */
parentLView[TVIEW].data; // Creates a cumulative bloom filter that merges the parent's bloom filter
// and its own cumulative bloom (which contains tokens for all ancestors)
for (var i = 0; i < 8; i++) {
hostView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];
}
}
hostView[injectorIndex + PARENT_INJECTOR] = parentLoc;
return injectorIndex;
}
/**
* @param {?} arr
* @param {?} footer
* @return {?}
*/
function insertBloom(arr, footer) {
arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);
}
/**
* @param {?} tNode
* @param {?} hostView
* @return {?}
*/
function getInjectorIndex(tNode, hostView) {
if (tNode.injectorIndex === -1 || // If the injector index is the same as its parent's injector index, then the index has been
// copied down from the parent node. No injector has been created yet on this node.
tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex || // After the first template pass, the injector index might exist but the parent values
// might not have been calculated yet for this instance
hostView[tNode.injectorIndex + PARENT_INJECTOR] == null) {
return -1;
} else {
return tNode.injectorIndex;
}
}
/**
* Finds the index of the parent injector, with a view offset if applicable. Used to set the
* parent injector initially.
*
* Returns a combination of number of `ViewData` we have to go up and index in that `Viewdata`
* @param {?} tNode
* @param {?} view
* @return {?}
*/
function getParentInjectorLocation(tNode, view) {
if (tNode.parent && tNode.parent.injectorIndex !== -1) {
return (
/** @type {?} */
tNode.parent.injectorIndex
); // ViewOffset is 0
} // For most cases, the parent injector index can be found on the host node (e.g. for component
// or container), so this loop will be skipped, but we must keep the loop here to support
// the rarer case of deeply nested tags or inline views.
/** @type {?} */
var hostTNode = view[T_HOST];
/** @type {?} */
var viewOffset = 1;
while (hostTNode && hostTNode.injectorIndex === -1) {
view =
/** @type {?} */
view[DECLARATION_VIEW];
hostTNode = view ? view[T_HOST] : null;
viewOffset++;
}
return hostTNode ? hostTNode.injectorIndex | viewOffset << 16
/* ViewOffsetShift */
:
/** @type {?} */
-1;
}
/**
* Makes a type or an injection token public to the DI system by adding it to an
* injector's bloom filter.
*
* @param {?} injectorIndex
* @param {?} tView
* @param {?} token The type or the injection token to be made public
* @return {?}
*/
function diPublicInInjector(injectorIndex, tView, token) {
bloomAdd(injectorIndex, tView, token);
}
/**
* Inject static attribute value into directive constructor.
*
* This method is used with `factory` functions which are generated as part of
* `defineDirective` or `defineComponent`. The method retrieves the static value
* of an attribute. (Dynamic attributes are not supported since they are not resolved
* at the time of injection and can change over time.)
*
* # Example
* Given:
* ```
* \@Component(...)
* class MyComponent {
* constructor(\@Attribute('title') title: string) { ... }
* }
* ```
* When instantiated with
* ```
*
* ```
*
* Then factory method generated is:
* ```
* MyComponent.ɵcmp = defineComponent({
* factory: () => new MyComponent(injectAttribute('title'))
* ...
* })
* ```
*
* \@publicApi
* @param {?} tNode
* @param {?} attrNameToInject
* @return {?}
*/
function injectAttributeImpl(tNode, attrNameToInject) {
ngDevMode && assertNodeOfPossibleTypes(tNode, 0
/* Container */
, 3
/* Element */
, 4
/* ElementContainer */
);
ngDevMode && assertDefined(tNode, 'expecting tNode');
if (attrNameToInject === 'class') {
return tNode.classes;
}
if (attrNameToInject === 'style') {
return tNode.styles;
}
/** @type {?} */
var attrs = tNode.attrs;
if (attrs) {
/** @type {?} */
var attrsLength = attrs.length;
/** @type {?} */
var i = 0;
while (i < attrsLength) {
/** @type {?} */
var value = attrs[i]; // If we hit a `Bindings` or `Template` marker then we are done.
if (isNameOnlyAttributeMarker(value)) break; // Skip namespaced attributes
if (value === 0
/* NamespaceURI */
) {
// we skip the next two values
// as namespaced attributes looks like
// [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',
// 'existValue', ...]
i = i + 2;
} else if (typeof value === 'number') {
// Skip to the first value of the marked attribute.
i++;
while (i < attrsLength && typeof attrs[i] === 'string') {
i++;
}
} else if (value === attrNameToInject) {
return (
/** @type {?} */
attrs[i + 1]
);
} else {
i = i + 2;
}
}
}
return null;
}
/**
* Returns the value associated to the given token from the NodeInjectors => ModuleInjector.
*
* Look for the injector providing the token by walking up the node injector tree and then
* the module injector tree.
*
* This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom
* filter. Negative values are reserved for special objects.
* - `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)
*
* @template T
* @param {?} tNode The Node where the search for the injector should start
* @param {?} lView The `LView` that contains the `tNode`
* @param {?} token The token to look for
* @param {?=} flags Injection flags
* @param {?=} notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
* @return {?} the value from the injector, `null` when not found, or `notFoundValue` if provided
*/
function getOrCreateInjectable(tNode, lView, token) {
var flags = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : InjectFlags.Default;
var notFoundValue = arguments.length > 4 ? arguments[4] : undefined;
if (tNode !== null) {
/** @type {?} */
var bloomHash = bloomHashBitOrFactory(token); // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef
// so just call the factory function to create it.
if (typeof bloomHash === 'function') {
enterDI(lView, tNode);
try {
/** @type {?} */
var value = bloomHash();
if (value == null && !(flags & InjectFlags.Optional)) {
throw new Error("No provider for ".concat(stringifyForError(token), "!"));
} else {
return value;
}
} finally {
leaveDI();
}
} else if (typeof bloomHash == 'number') {
if (bloomHash === -1) {
// `-1` is a special value used to identify `Injector` types.
return (
/** @type {?} */
new NodeInjector(tNode, lView)
);
} // If the token has a bloom hash, then it is a token which could be in NodeInjector.
// A reference to the previous injector TView that was found while climbing the element
// injector tree. This is used to know if viewProviders can be accessed on the current
// injector.
/** @type {?} */
var previousTView = null;
/** @type {?} */
var injectorIndex = getInjectorIndex(tNode, lView);
/** @type {?} */
var parentLocation = NO_PARENT_INJECTOR;
/** @type {?} */
var hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null; // If we should skip this injector, or if there is no injector on this node, start by
// searching
// the parent injector.
if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {
parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + PARENT_INJECTOR];
if (!shouldSearchParent(flags, false)) {
injectorIndex = -1;
} else {
previousTView = lView[TVIEW];
injectorIndex = getParentInjectorIndex(parentLocation);
lView = getParentInjectorView(parentLocation, lView);
}
} // Traverse up the injector tree until we find a potential match or until we know there
// *isn't* a match.
while (injectorIndex !== -1) {
parentLocation = lView[injectorIndex + PARENT_INJECTOR]; // Check the current injector. If it matches, see if it contains token.
/** @type {?} */
var tView = lView[TVIEW];
if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {
// At this point, we have an injector which *may* contain the token, so we step through
// the providers and directives associated with the injector's corresponding node to get
// the instance.
/** @type {?} */
var instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);
if (instance !== NOT_FOUND) {
return instance;
}
}
if (shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + TNODE] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) {
// The def wasn't found anywhere on this node, so it was a false positive.
// Traverse up the tree and continue searching.
previousTView = tView;
injectorIndex = getParentInjectorIndex(parentLocation);
lView = getParentInjectorView(parentLocation, lView);
} else {
// If we should not search parent OR If the ancestor bloom filter value does not have the
// bit corresponding to the directive we can give up on traversing up to find the specific
// injector.
injectorIndex = -1;
}
}
}
}
if (flags & InjectFlags.Optional && notFoundValue === undefined) {
// This must be set or the NullInjector will throw for optional deps
notFoundValue = null;
}
if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {
/** @type {?} */
var moduleInjector = lView[INJECTOR$1]; // switch to `injectInjectorOnly` implementation for module injector, since module injector
// should not have access to Component/Directive DI scope (that may happen through
// `directiveInject` implementation)
/** @type {?} */
var previousInjectImplementation = setInjectImplementation(undefined);
try {
if (moduleInjector) {
return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);
} else {
return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);
}
} finally {
setInjectImplementation(previousInjectImplementation);
}
}
if (flags & InjectFlags.Optional) {
return notFoundValue;
} else {
throw new Error("NodeInjector: NOT_FOUND [".concat(stringifyForError(token), "]"));
}
}
/** @type {?} */
var NOT_FOUND = {};
/**
* @template T
* @param {?} injectorIndex
* @param {?} lView
* @param {?} token
* @param {?} previousTView
* @param {?} flags
* @param {?} hostTElementNode
* @return {?}
*/
function searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {
/** @type {?} */
var currentTView = lView[TVIEW];
/** @type {?} */
var tNode =
/** @type {?} */
currentTView.data[injectorIndex + TNODE]; // First, we need to determine if view providers can be accessed by the starting element.
// There are two possibities
/** @type {?} */
var canAccessViewProviders = previousTView == null ? // 1) This is the first invocation `previousTView == null` which means that we are at the
// `TNode` of where injector is starting to look. In such a case the only time we are allowed
// to look into the ViewProviders is if:
// - we are on a component
// - AND the injector set `includeViewProviders` to true (implying that the token can see
// ViewProviders because it is the Component or a Service which itself was declared in
// ViewProviders)
isComponentHost(tNode) && includeViewProviders : // 2) `previousTView != null` which means that we are now walking across the parent nodes.
// In such a case we are only allowed to look into the ViewProviders if:
// - We just crossed from child View to Parent View `previousTView != currentTView`
// - AND the parent TNode is an Element.
// This means that we just came from the Component's View and therefore are allowed to see
// into the ViewProviders.
previousTView != currentTView && tNode.type === 3
/* Element */
; // This special case happens when there is a @host on the inject and when we are searching
// on the host element node.
/** @type {?} */
var isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;
/** @type {?} */
var injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);
if (injectableIdx !== null) {
return getNodeInjectable(lView, currentTView, injectableIdx,
/** @type {?} */
tNode);
} else {
return NOT_FOUND;
}
}
/**
* Searches for the given token among the node's directives and providers.
*
* @template T
* @param {?} tNode TNode on which directives are present.
* @param {?} tView The tView we are currently processing
* @param {?} token Provider token or type of a directive to look for.
* @param {?} canAccessViewProviders Whether view providers should be considered.
* @param {?} isHostSpecialCase Whether the host special case applies.
* @return {?} Index of a found directive or provider, or null when none found.
*/
function locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {
/** @type {?} */
var nodeProviderIndexes = tNode.providerIndexes;
/** @type {?} */
var tInjectables = tView.data;
/** @type {?} */
var injectablesStart = nodeProviderIndexes & 65535
/* ProvidersStartIndexMask */
;
/** @type {?} */
var directivesStart = tNode.directiveStart;
/** @type {?} */
var directiveEnd = tNode.directiveEnd;
/** @type {?} */
var cptViewProvidersCount = nodeProviderIndexes >> 16
/* CptViewProvidersCountShift */
;
/** @type {?} */
var startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount; // When the host special case applies, only the viewProviders and the component are visible
/** @type {?} */
var endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;
for (var i = startingIndex; i < endIndex; i++) {
/** @type {?} */
var providerTokenOrDef =
/** @type {?} */
tInjectables[i];
if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart &&
/** @type {?} */
providerTokenOrDef.type === token) {
return i;
}
}
if (isHostSpecialCase) {
/** @type {?} */
var dirDef =
/** @type {?} */
tInjectables[directivesStart];
if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {
return directivesStart;
}
}
return null;
}
/**
* Retrieve or instantiate the injectable from the `LView` at particular `index`.
*
* This function checks to see if the value has already been instantiated and if so returns the
* cached `injectable`. Otherwise if it detects that the value is still a factory it
* instantiates the `injectable` and caches the value.
* @param {?} lView
* @param {?} tView
* @param {?} index
* @param {?} tNode
* @return {?}
*/
function getNodeInjectable(lView, tView, index, tNode) {
/** @type {?} */
var value = lView[index];
/** @type {?} */
var tData = tView.data;
if (isFactory(value)) {
/** @type {?} */
var factory = value;
if (factory.resolving) {
throw new Error("Circular dep for ".concat(stringifyForError(tData[index])));
}
/** @type {?} */
var previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);
factory.resolving = true;
/** @type {?} */
var previousInjectImplementation;
if (factory.injectImpl) {
previousInjectImplementation = setInjectImplementation(factory.injectImpl);
}
enterDI(lView, tNode);
try {
value = lView[index] = factory.factory(undefined, tData, lView, tNode); // This code path is hit for both directives and providers.
// For perf reasons, we want to avoid searching for hooks on providers.
// It does no harm to try (the hooks just won't exist), but the extra
// checks are unnecessary and this is a hot path. So we check to see
// if the index of the dependency is in the directive range for this
// tNode. If it's not, we know it's a provider and skip hook registration.
if (tView.firstCreatePass && index >= tNode.directiveStart) {
ngDevMode && assertDirectiveDef(tData[index]);
registerPreOrderHooks(index,
/** @type {?} */
tData[index], tView);
}
} finally {
if (factory.injectImpl) setInjectImplementation(previousInjectImplementation);
setIncludeViewProviders(previousIncludeViewProviders);
factory.resolving = false;
leaveDI();
}
}
return value;
}
/**
* Returns the bit in an injector's bloom filter that should be used to determine whether or not
* the directive might be provided by the injector.
*
* When a directive is public, it is added to the bloom filter and given a unique ID that can be
* retrieved on the Type. When the directive isn't public or the token is not a directive `null`
* is returned as the node injector can not possibly provide that token.
*
* @param {?} token the injection token
* @return {?} the matching bit to check in the bloom filter or `null` if the token is not known.
* When the returned value is negative then it represents special values such as `Injector`.
*/
function bloomHashBitOrFactory(token) {
ngDevMode && assertDefined(token, 'token must be defined');
if (typeof token === 'string') {
return token.charCodeAt(0) || 0;
}
/** @type {?} */
var tokenId =
/** @type {?} */
token[NG_ELEMENT_ID]; // Negative token IDs are used for special objects such as `Injector`
return typeof tokenId === 'number' && tokenId > 0 ? tokenId & BLOOM_MASK : tokenId;
}
/**
* @param {?} bloomHash
* @param {?} injectorIndex
* @param {?} injectorView
* @return {?}
*/
function bloomHasToken(bloomHash, injectorIndex, injectorView) {
// Create a mask that targets the specific bit associated with the directive we're looking for.
// JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
// to bit positions 0 - 31 in a 32 bit integer.
/** @type {?} */
var mask = 1 << bloomHash;
/** @type {?} */
var b7 = bloomHash & 0x80;
/** @type {?} */
var b6 = bloomHash & 0x40;
/** @type {?} */
var b5 = bloomHash & 0x20; // Our bloom filter size is 256 bits, which is eight 32-bit bloom filter buckets:
// bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc.
// Get the bloom filter value from the appropriate bucket based on the directive's bloomBit.
/** @type {?} */
var value;
if (b7) {
value = b6 ? b5 ? injectorView[injectorIndex + 7] : injectorView[injectorIndex + 6] : b5 ? injectorView[injectorIndex + 5] : injectorView[injectorIndex + 4];
} else {
value = b6 ? b5 ? injectorView[injectorIndex + 3] : injectorView[injectorIndex + 2] : b5 ? injectorView[injectorIndex + 1] : injectorView[injectorIndex];
} // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,
// this injector is a potential match.
return !!(value & mask);
}
/**
* Returns true if flags prevent parent injector from being searched for tokens
* @param {?} flags
* @param {?} isFirstHostTNode
* @return {?}
*/
function shouldSearchParent(flags, isFirstHostTNode) {
return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);
}
var NodeInjector =
/*#__PURE__*/
function () {
/**
* @param {?} _tNode
* @param {?} _lView
*/
function NodeInjector(_tNode, _lView) {
_classCallCheck(this, NodeInjector);
this._tNode = _tNode;
this._lView = _lView;
}
/**
* @param {?} token
* @param {?=} notFoundValue
* @return {?}
*/
return _createClass2(NodeInjector, [{
key: "get",
value: function get(token, notFoundValue) {
return getOrCreateInjectable(this._tNode, this._lView, token, undefined, notFoundValue);
}
}]);
}();
if (false) {}
/**
* \@codeGenApi
* @template T
* @param {?} type
* @return {?}
*/
function ɵɵgetFactoryOf(type) {
/** @type {?} */
var typeAny =
/** @type {?} */
type;
if (isForwardRef(type)) {
return (
/** @type {?} */
/**
* @return {?}
*/
function () {
/** @type {?} */
var factory = ɵɵgetFactoryOf(resolveForwardRef(typeAny));
return factory ? factory() : null;
}
);
}
/** @type {?} */
var factory = getFactoryDef(typeAny);
if (factory === null) {
/** @type {?} */
var injectorDef = getInjectorDef(typeAny);
factory = injectorDef && injectorDef.factory;
}
return factory || null;
}
/**
* \@codeGenApi
* @template T
* @param {?} type
* @return {?}
*/
function ɵɵgetInheritedFactory(type) {
return noSideEffects(
/**
* @return {?}
*/
function () {
/** @type {?} */
var proto =
/** @type {?} */
Object.getPrototypeOf(type.prototype).constructor;
/** @type {?} */
var factory =
/** @type {?} */
proto[NG_FACTORY_DEF] || ɵɵgetFactoryOf(proto);
if (factory !== null) {
return factory;
} else {
// There is no factory defined. Either this was improper usage of inheritance
// (no Angular decorator on the superclass) or there is no constructor at all
// in the inheritance chain. Since the two cases cannot be distinguished, the
// latter has to be assumed.
return (
/**
* @param {?} t
* @return {?}
*/
function (t) {
return new t();
}
);
}
});
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ERROR_TYPE = 'ngType';
var ERROR_DEBUG_CONTEXT = 'ngDebugContext';
var ERROR_ORIGINAL_ERROR = 'ngOriginalError';
var ERROR_LOGGER = 'ngErrorLogger';
function wrappedError(message, originalError) {
var msg = "".concat(message, " caused by: ").concat(originalError instanceof Error ? originalError.message : originalError);
var error = Error(msg);
error[ERROR_ORIGINAL_ERROR] = originalError;
return error;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/errors.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} error
* @return {?}
*/
function getType(error) {
return (
/** @type {?} */
error[ERROR_TYPE]
);
}
/**
* @param {?} error
* @return {?}
*/
function getDebugContext(error) {
return (
/** @type {?} */
error[ERROR_DEBUG_CONTEXT]
);
}
/**
* @param {?} error
* @return {?}
*/
function getOriginalError(error) {
return (
/** @type {?} */
error[ERROR_ORIGINAL_ERROR]
);
}
/**
* @param {?} error
* @return {?}
*/
function getErrorLogger(error) {
return (
/** @type {?} */
error[ERROR_LOGGER] || defaultErrorLogger
);
}
/**
* @param {?} console
* @param {...?} values
* @return {?}
*/
function defaultErrorLogger(console) {
for (var _len11 = arguments.length, values = new Array(_len11 > 1 ? _len11 - 1 : 0), _key12 = 1; _key12 < _len11; _key12++) {
values[_key12 - 1] = arguments[_key12];
}
/** @type {?} */
console.error.apply(console, values);
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/error_handler.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Provides a hook for centralized exception handling.
*
* The default implementation of `ErrorHandler` prints error messages to the `console`. To
* intercept error handling, write a custom exception handler that replaces this default as
* appropriate for your app.
*
* \@usageNotes
* ### Example
*
* ```
* class MyErrorHandler implements ErrorHandler {
* handleError(error) {
* // do something with the exception
* }
* }
*
* \@NgModule({
* providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]
* })
* class MyModule {}
* ```
*
* \@publicApi
*/
var ErrorHandler =
/*#__PURE__*/
function () {
function ErrorHandler() {
_classCallCheck(this, ErrorHandler);
/**
* \@internal
*/
this._console = console;
}
/**
* @param {?} error
* @return {?}
*/
return _createClass2(ErrorHandler, [{
key: "handleError",
value: function handleError(error) {
/** @type {?} */
var originalError = this._findOriginalError(error);
/** @type {?} */
var context = this._findContext(error); // Note: Browser consoles show the place from where console.error was called.
// We can use this to give users additional information about the error.
/** @type {?} */
var errorLogger = getErrorLogger(error);
errorLogger(this._console, "ERROR", error);
if (originalError) {
errorLogger(this._console, "ORIGINAL ERROR", originalError);
}
if (context) {
errorLogger(this._console, 'ERROR CONTEXT', context);
}
}
/**
* \@internal
* @param {?} error
* @return {?}
*/
}, {
key: "_findContext",
value: function _findContext(error) {
if (error) {
return getDebugContext(error) ? getDebugContext(error) : this._findContext(getOriginalError(error));
}
return null;
}
/**
* \@internal
* @param {?} error
* @return {?}
*/
}, {
key: "_findOriginalError",
value: function _findOriginalError(error) {
/** @type {?} */
var e = getOriginalError(error);
while (e && getOriginalError(e)) {
e = getOriginalError(e);
}
return e;
}
}]);
}();
if (false) {}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/metadata/schema.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* A schema definition associated with an NgModule.
*
* @see `\@NgModule`, `CUSTOM_ELEMENTS_SCHEMA`, `NO_ERRORS_SCHEMA`
*
* @param name The name of a defined schema.
*
* \@publicApi
* @record
*/
function SchemaMetadata() {}
if (false) {}
/**
* Defines a schema that allows an NgModule to contain the following:
* - Non-Angular elements named with dash case (`-`).
* - Element properties named with dash case (`-`).
* Dash case is the naming convention for custom elements.
*
* \@publicApi
* @type {?}
*/
var CUSTOM_ELEMENTS_SCHEMA = {
name: 'custom-elements'
};
/**
* Defines a schema that allows any property on any element.
*
* \@publicApi
* @type {?}
*/
var NO_ERRORS_SCHEMA = {
name: 'no-errors-schema'
};
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/sanitization/bypass.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** @enum {string} */
var BypassType = {
Url: "URL",
Html: "HTML",
ResourceUrl: "ResourceURL",
Script: "Script",
Style: "Style"
};
/**
* Marker interface for a value that's safe to use in a particular context.
*
* \@publicApi
* @record
*/
function SafeValue() {}
/**
* Marker interface for a value that's safe to use as HTML.
*
* \@publicApi
* @record
*/
function SafeHtml() {}
/**
* Marker interface for a value that's safe to use as style (CSS).
*
* \@publicApi
* @record
*/
function SafeStyle() {}
/**
* Marker interface for a value that's safe to use as JavaScript.
*
* \@publicApi
* @record
*/
function SafeScript() {}
/**
* Marker interface for a value that's safe to use as a URL linking to a document.
*
* \@publicApi
* @record
*/
function SafeUrl() {}
/**
* Marker interface for a value that's safe to use as a URL to load executable code from.
*
* \@publicApi
* @record
*/
function SafeResourceUrl() {}
/**
* @abstract
*/
var SafeValueImpl =
/*#__PURE__*/
function () {
/**
* @param {?} changingThisBreaksApplicationSecurity
*/
function SafeValueImpl(changingThisBreaksApplicationSecurity) {
_classCallCheck(this, SafeValueImpl);
this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;
}
/**
* @return {?}
*/
return _createClass2(SafeValueImpl, [{
key: "toString",
value: function toString() {
return "SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity) + " (see http://g.co/ng/security#xss)";
}
}]);
}();
if (false) {}
var SafeHtmlImpl =
/*#__PURE__*/
function (_SafeValueImpl) {
function SafeHtmlImpl() {
_classCallCheck(this, SafeHtmlImpl);
return _callSuper(this, SafeHtmlImpl, arguments);
}
_inherits(SafeHtmlImpl, _SafeValueImpl);
return _createClass2(SafeHtmlImpl, [{
key: "getTypeName",
value:
/**
* @return {?}
*/
function getTypeName() {
return "HTML"
/* Html */
;
}
}]);
}(SafeValueImpl);
var SafeStyleImpl =
/*#__PURE__*/
function (_SafeValueImpl2) {
function SafeStyleImpl() {
_classCallCheck(this, SafeStyleImpl);
return _callSuper(this, SafeStyleImpl, arguments);
}
_inherits(SafeStyleImpl, _SafeValueImpl2);
return _createClass2(SafeStyleImpl, [{
key: "getTypeName",
value:
/**
* @return {?}
*/
function getTypeName() {
return "Style"
/* Style */
;
}
}]);
}(SafeValueImpl);
var SafeScriptImpl =
/*#__PURE__*/
function (_SafeValueImpl3) {
function SafeScriptImpl() {
_classCallCheck(this, SafeScriptImpl);
return _callSuper(this, SafeScriptImpl, arguments);
}
_inherits(SafeScriptImpl, _SafeValueImpl3);
return _createClass2(SafeScriptImpl, [{
key: "getTypeName",
value:
/**
* @return {?}
*/
function getTypeName() {
return "Script"
/* Script */
;
}
}]);
}(SafeValueImpl);
var SafeUrlImpl =
/*#__PURE__*/
function (_SafeValueImpl4) {
function SafeUrlImpl() {
_classCallCheck(this, SafeUrlImpl);
return _callSuper(this, SafeUrlImpl, arguments);
}
_inherits(SafeUrlImpl, _SafeValueImpl4);
return _createClass2(SafeUrlImpl, [{
key: "getTypeName",
value:
/**
* @return {?}
*/
function getTypeName() {
return "URL"
/* Url */
;
}
}]);
}(SafeValueImpl);
var SafeResourceUrlImpl =
/*#__PURE__*/
function (_SafeValueImpl5) {
function SafeResourceUrlImpl() {
_classCallCheck(this, SafeResourceUrlImpl);
return _callSuper(this, SafeResourceUrlImpl, arguments);
}
_inherits(SafeResourceUrlImpl, _SafeValueImpl5);
return _createClass2(SafeResourceUrlImpl, [{
key: "getTypeName",
value:
/**
* @return {?}
*/
function getTypeName() {
return "ResourceURL"
/* ResourceUrl */
;
}
}]);
}(SafeValueImpl);
/**
* @template T
* @param {?} value
* @return {?}
*/
function unwrapSafeValue(value) {
return value instanceof SafeValueImpl ?
/** @type {?} */
/** @type {?} */
value.changingThisBreaksApplicationSecurity :
/** @type {?} */
/** @type {?} */
value;
}
/**
* @param {?} value
* @param {?} type
* @return {?}
*/
function allowSanitizationBypassAndThrow(value, type) {
/** @type {?} */
var actualType = getSanitizationBypassType(value);
if (actualType != null && actualType !== type) {
// Allow ResourceURLs in URL contexts, they are strictly more trusted.
if (actualType === "ResourceURL"
/* ResourceUrl */
&& type === "URL"
/* Url */
) return true;
throw new Error("Required a safe ".concat(type, ", got a ").concat(actualType, " (see http://g.co/ng/security#xss)"));
}
return actualType === type;
}
/**
* @param {?} value
* @return {?}
*/
function getSanitizationBypassType(value) {
return value instanceof SafeValueImpl &&
/** @type {?} */
value.getTypeName() || null;
}
/**
* Mark `html` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {\@link htmlSanitizer} to be trusted implicitly.
*
* @param {?} trustedHtml `html` string which needs to be implicitly trusted.
* @return {?} a `html` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustHtml(trustedHtml) {
return new SafeHtmlImpl(trustedHtml);
}
/**
* Mark `style` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {\@link styleSanitizer} to be trusted implicitly.
*
* @param {?} trustedStyle `style` string which needs to be implicitly trusted.
* @return {?} a `style` hich has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustStyle(trustedStyle) {
return new SafeStyleImpl(trustedStyle);
}
/**
* Mark `script` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {\@link scriptSanitizer} to be trusted implicitly.
*
* @param {?} trustedScript `script` string which needs to be implicitly trusted.
* @return {?} a `script` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustScript(trustedScript) {
return new SafeScriptImpl(trustedScript);
}
/**
* Mark `url` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {\@link urlSanitizer} to be trusted implicitly.
*
* @param {?} trustedUrl `url` string which needs to be implicitly trusted.
* @return {?} a `url` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustUrl(trustedUrl) {
return new SafeUrlImpl(trustedUrl);
}
/**
* Mark `url` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {\@link resourceUrlSanitizer} to be trusted implicitly.
*
* @param {?} trustedResourceUrl `url` string which needs to be implicitly trusted.
* @return {?} a `url` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustResourceUrl(trustedResourceUrl) {
return new SafeResourceUrlImpl(trustedResourceUrl);
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This file is used to control if the default rendering pipeline should be `ViewEngine` or `Ivy`.
*
* For more information on how to run and debug tests with either Ivy or View Engine (legacy),
* please see [BAZEL.md](./docs/BAZEL.md).
*/
var _devMode = true;
var _runModeLocked = false;
/**
* Returns whether Angular is in development mode. After called once,
* the value is locked and won't change any more.
*
* By default, this is true, unless a user calls `enableProdMode` before calling this.
*
* @publicApi
*/
function isDevMode() {
_runModeLocked = true;
return _devMode;
}
/**
* Disable Angular's development mode, which turns off assertions and other
* checks within the framework.
*
* One important assertion this disables verifies that a change detection pass
* does not result in additional changes to any bindings (also known as
* unidirectional data flow).
*
* @publicApi
*/
function enableProdMode() {
if (_runModeLocked) {
throw new Error('Cannot enable prod mode after platform setup.');
}
_devMode = false;
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/sanitization/inert_body.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This helper class is used to get hold of an inert tree of DOM elements containing dirty HTML
* that needs sanitizing.
* Depending upon browser support we must use one of three strategies for doing this.
* Support: Safari 10.x -> XHR strategy
* Support: Firefox -> DomParser strategy
* Default: InertDocument strategy
*/
var InertBodyHelper =
/*#__PURE__*/
function () {
/**
* @param {?} defaultDoc
*/
function InertBodyHelper(defaultDoc) {
_classCallCheck(this, InertBodyHelper);
this.defaultDoc = defaultDoc;
this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');
/** @type {?} */
var inertBodyElement = this.inertDocument.body;
if (inertBodyElement == null) {
// usually there should be only one body element in the document, but IE doesn't have any, so
// we need to create one.
/** @type {?} */
var inertHtml = this.inertDocument.createElement('html');
this.inertDocument.appendChild(inertHtml);
inertBodyElement = this.inertDocument.createElement('body');
inertHtml.appendChild(inertBodyElement);
}
inertBodyElement.innerHTML = ' ';
if (inertBodyElement.querySelector && !inertBodyElement.querySelector('svg')) {
// We just hit the Safari 10.1 bug - which allows JS to run inside the SVG G element
// so use the XHR strategy.
this.getInertBodyElement = this.getInertBodyElement_XHR;
return;
}
inertBodyElement.innerHTML = ' ';
if (inertBodyElement.querySelector && inertBodyElement.querySelector('svg img')) {
// We just hit the Firefox bug - which prevents the inner img JS from being sanitized
// so use the DOMParser strategy, if it is available.
// If the DOMParser is not available then we are not in Firefox (Server/WebWorker?) so we
// fall through to the default strategy below.
if (isDOMParserAvailable()) {
this.getInertBodyElement = this.getInertBodyElement_DOMParser;
return;
}
} // None of the bugs were hit so it is safe for us to use the default InertDocument strategy
this.getInertBodyElement = this.getInertBodyElement_InertDocument;
}
/**
* Use XHR to create and fill an inert body element (on Safari 10.1)
* See
* https://github.com/cure53/DOMPurify/blob/a992d3a75031cb8bb032e5ea8399ba972bdf9a65/src/purify.js#L439-L449
* @private
* @param {?} html
* @return {?}
*/
return _createClass2(InertBodyHelper, [{
key: "getInertBodyElement_XHR",
value: function getInertBodyElement_XHR(html) {
// We add these extra elements to ensure that the rest of the content is parsed as expected
// e.g. leading whitespace is maintained and tags like ` ` do not get hoisted to the
// `
` tag.
html = ' ' + html + '';
try {
html = encodeURI(html);
} catch (_a) {
return null;
}
/** @type {?} */
var xhr = new XMLHttpRequest();
xhr.responseType = 'document';
xhr.open('GET', 'data:text/html;charset=utf-8,' + html, false);
xhr.send(undefined);
/** @type {?} */
var body = xhr.response.body;
body.removeChild(
/** @type {?} */
body.firstChild);
return body;
}
/**
* Use DOMParser to create and fill an inert body element (on Firefox)
* See https://github.com/cure53/DOMPurify/releases/tag/0.6.7
*
* @private
* @param {?} html
* @return {?}
*/
}, {
key: "getInertBodyElement_DOMParser",
value: function getInertBodyElement_DOMParser(html) {
// We add these extra elements to ensure that the rest of the content is parsed as expected
// e.g. leading whitespace is maintained and tags like ` ` do not get hoisted to the
// `` tag.
html = ' ' + html + '';
try {
/** @type {?} */
var body =
/** @type {?} */
new
/** @type {?} */
window.DOMParser().parseFromString(html, 'text/html').body;
body.removeChild(
/** @type {?} */
body.firstChild);
return body;
} catch (_a) {
return null;
}
}
/**
* Use an HTML5 `template` element, if supported, or an inert body element created via
* `createHtmlDocument` to create and fill an inert DOM element.
* This is the default sane strategy to use if the browser does not require one of the specialised
* strategies above.
* @private
* @param {?} html
* @return {?}
*/
}, {
key: "getInertBodyElement_InertDocument",
value: function getInertBodyElement_InertDocument(html) {
// Prefer using element if supported.
/** @type {?} */
var templateEl = this.inertDocument.createElement('template');
if ('content' in templateEl) {
templateEl.innerHTML = html;
return templateEl;
} // Note that previously we used to do something like `this.inertDocument.body.innerHTML = html`
// and we returned the inert `body` node. This was changed, because IE seems to treat setting
// `innerHTML` on an inserted element differently, compared to one that hasn't been inserted
// yet. In particular, IE appears to split some of the text into multiple text nodes rather
// than keeping them in a single one which ends up messing with Ivy's i18n parsing further
// down the line. This has been worked around by creating a new inert `body` and using it as
// the root node in which we insert the HTML.
/** @type {?} */
var inertBody = this.inertDocument.createElement('body');
inertBody.innerHTML = html; // Support: IE 9-11 only
// strip custom-namespaced attributes on IE<=11
if (
/** @type {?} */
this.defaultDoc.documentMode) {
this.stripCustomNsAttrs(inertBody);
}
return inertBody;
}
/**
* When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
* attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g.
* 'ns1:xlink:foo').
*
* This is undesirable since we don't want to allow any of these custom attributes. This method
* strips them all.
* @private
* @param {?} el
* @return {?}
*/
}, {
key: "stripCustomNsAttrs",
value: function stripCustomNsAttrs(el) {
/** @type {?} */
var elAttrs = el.attributes; // loop backwards so that we can support removals.
for (var i = elAttrs.length - 1; 0 < i; i--) {
/** @type {?} */
var attrib = elAttrs.item(i);
/** @type {?} */
var attrName =
/** @type {?} */
attrib.name;
if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {
el.removeAttribute(attrName);
}
}
/** @type {?} */
var childNode =
/** @type {?} */
el.firstChild;
while (childNode) {
if (childNode.nodeType === Node.ELEMENT_NODE) this.stripCustomNsAttrs(
/** @type {?} */
childNode);
childNode = childNode.nextSibling;
}
}
}]);
}();
if (false) {}
/**
* We need to determine whether the DOMParser exists in the global context.
* The try-catch is because, on some browsers, trying to access this property
* on window can actually throw an error.
*
* @suppress {uselessCode}
* @return {?}
*/
function isDOMParserAvailable() {
try {
return !!
/** @type {?} */
window.DOMParser;
} catch (_a) {
return false;
}
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/sanitization/url_sanitizer.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* A pattern that recognizes a commonly useful subset of URLs that are safe.
*
* This regular expression matches a subset of URLs that will not cause script
* execution if used in URL context within a HTML document. Specifically, this
* regular expression matches if (comment from here on and regex copied from
* Soy's EscapingConventions):
* (1) Either an allowed protocol (http, https, mailto or ftp).
* (2) or no protocol. A protocol must be followed by a colon. The below
* allows that by allowing colons only after one of the characters [/?#].
* A colon after a hash (#) must be in the fragment.
* Otherwise, a colon after a (?) must be in a query.
* Otherwise, a colon after a single solidus (/) must be in a path.
* Otherwise, a colon after a double solidus (//) must be in the authority
* (before port).
*
* The pattern disallows &, used in HTML entity declarations before
* one of the characters in [/?#]. This disallows HTML entities used in the
* protocol name, which should never happen, e.g. "http" for "http".
* It also disallows HTML entities in the first path part of a relative path,
* e.g. "foo<bar/baz". Our existing escaping functions should not produce
* that. More importantly, it disallows masking of a colon,
* e.g. "javascript:...".
*
* This regular expression was taken from the Closure sanitization library.
* @type {?}
*/
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi;
/* A pattern that matches safe srcset values */
/** @type {?} */
var SAFE_SRCSET_PATTERN = /^(?:(?:https?|file):|[^&:/?#]*(?:[/?#]|$))/gi;
/**
* A pattern that matches safe data URLs. Only matches image, video and audio types.
* @type {?}
*/
var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
/**
* @param {?} url
* @return {?}
*/
function _sanitizeUrl(url) {
url = String(url);
if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN)) return url;
if (isDevMode()) {
console.warn("WARNING: sanitizing unsafe URL value ".concat(url, " (see http://g.co/ng/security#xss)"));
}
return 'unsafe:' + url;
}
/**
* @param {?} srcset
* @return {?}
*/
function sanitizeSrcset(srcset) {
srcset = String(srcset);
return srcset.split(',').map(
/**
* @param {?} srcset
* @return {?}
*/
function (srcset) {
return _sanitizeUrl(srcset.trim());
}).join(', ');
}
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/sanitization/html_sanitizer.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} tags
* @return {?}
*/
function tagSet(tags) {
/** @type {?} */
var res = {};
var _iterator2 = _createForOfIteratorHelper(tags.split(',')),
_step3;
try {
for (_iterator2.s(); !(_step3 = _iterator2.n()).done;) {
var t = _step3.value;
res[t] = true;
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
return res;
}
/**
* @param {...?} sets
* @return {?}
*/
function core_merge() {
/** @type {?} */
var res = {};
for (var _len12 = arguments.length, sets = new Array(_len12), _key13 = 0; _key13 < _len12; _key13++) {
sets[_key13] = arguments[_key13];
}
for (var _i9 = 0, _sets = sets; _i9 < _sets.length; _i9++) {
var s = _sets[_i9];
for (var v in s) {
if (s.hasOwnProperty(v)) res[v] = true;
}
}
return res;
} // Good source of info about elements and attributes
// http://dev.w3.org/html5/spec/Overview.html#semantics
// http://simon.html5.org/html-elements
// Safe Void Elements - HTML5
// http://dev.w3.org/html5/spec/Overview.html#void-elements
/** @type {?} */
var VOID_ELEMENTS =
/*@__PURE__*/
tagSet('area,br,col,hr,img,wbr'); // Elements that you can, intentionally, leave open (and which close themselves)
// http://dev.w3.org/html5/spec/Overview.html#optional-tags
/** @type {?} */
var OPTIONAL_END_TAG_BLOCK_ELEMENTS =
/*@__PURE__*/
tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');
/** @type {?} */
var OPTIONAL_END_TAG_INLINE_ELEMENTS =
/*@__PURE__*/
tagSet('rp,rt');
/** @type {?} */
var OPTIONAL_END_TAG_ELEMENTS =
/*@__PURE__*/
core_merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS); // Safe Block Elements - HTML5
/** @type {?} */
var BLOCK_ELEMENTS =
/*@__PURE__*/
core_merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS,
/*@__PURE__*/
tagSet('address,article,' + 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' + 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul')); // Inline Elements - HTML5
/** @type {?} */
var INLINE_ELEMENTS =
/*@__PURE__*/
core_merge(OPTIONAL_END_TAG_INLINE_ELEMENTS,
/*@__PURE__*/
tagSet('a,abbr,acronym,audio,b,' + 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' + 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));
/** @type {?} */
var VALID_ELEMENTS =
/*@__PURE__*/
core_merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS); // Attributes that have href and hence need to be sanitized
/** @type {?} */
var URI_ATTRS =
/*@__PURE__*/
tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href'); // Attributes that have special href set hence need to be sanitized
/** @type {?} */
var SRCSET_ATTRS =
/*@__PURE__*/
tagSet('srcset');
/** @type {?} */
var HTML_ATTRS =
/*@__PURE__*/
tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' + 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' + 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' + 'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' + 'valign,value,vspace,width'); // Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)
/** @type {?} */
var ARIA_ATTRS =
/*@__PURE__*/
tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' + 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' + 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' + 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' + 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' + 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' + 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext'); // NB: This currently consciously doesn't support SVG. SVG sanitization has had several security
// issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via
// innerHTML is required, SVG attributes should be added here.
// NB: Sanitization does not allow